Exelio 0 Junior Poster in Training

hi all,

I am using ORCA to validate the product key in C# 2005 windows application.

i am using the following C++ code in a dll to be added to the MSI for validation.

UINT __stdcall ValidateSerial(MSIHANDLE hInstall)
{
TCHAR szPidKey[PIDKEY_LENGTH];
DWORD dwLen = sizeof(szPidKey) / sizeof(szPidKey[0]);

///retrieve the text entered by the user
UINT res = MsiGetPropertyA(hInstall, _T("PIDKEY"), szPidKey, &dwLen);
if(res != ERROR_SUCCESS)
{
//fail the installation
return 1;
}

bool snIsValid = true;
//validate the text from szPidKey according to your algorithm
//put the result in snIsValid

//the template we use is <###-####> = ; # digit between 0 and 9
//the algorithm is very simple (XY * Z + 7) * 13 = ABCD / 2
int xy = DIGIT(szPidKey[0]) * 10 + DIGIT(szPidKey[1]);
int z = DIGIT(szPidKey[2]);
int left = ((xy * z + 7) * 13 ) * 2;
int right = DIGIT(szPidKey[4]);
right = right * 10 + DIGIT(szPidKey[5]);
right = right * 10 + DIGIT(szPidKey[6]);
right = right * 10 + DIGIT(szPidKey[7]);
snIsValid = (left != 0) && (right != 0) && (left == right);

TCHAR * serialValid = NULL;
if(snIsValid)
serialValid = _T("TRUE");
else
{
//eventually say something to the user
::MessageBox(0, _T("Invalid Serial Number"), _T("Message"), MB_ICONSTOP);

serialValid = _T("FALSE");
}

res = MsiSetPropertyA(hInstall, _T("SERIAL_VALIDATION"), serialValid);
if(res != ERROR_SUCCESS)
{
//fail the installation
return 1;
}

//the validation succeeded - even the serial is wrong
//if the SERIAL_VALIDATION was set to FALSE the installation will not continue
return 0; …
Exelio 0 Junior Poster in Training

hi all,

I have a panel which contains a picturebox and two textboxes. in one of the textbox, some large content is to be displayed. this content is dynamic and i want the textbox to wrap the text accordingly.

i set the textbox multiline property to true and also set wordwrap=true. inaddition i set the acceptsreturn=true.

but still the text is not wrapped.

how can i achieve this?

Thanks in advance.

Regards
Exelio

Exelio 0 Junior Poster in Training

hi all,

I need to monitor a folder (also for the subdirectories) for changes or renaming. i am trying to use the File system watcher control and has set the path of the directory.

i have written code in the rename event of filesystem watcher

public void OnRenameEvent(Object sender, RenamedEventArgs e)
{
MessageBox.Show(e.OldName);
}

i have set the EnableRaisingEvents as true. but still when i am trying to rename the folder, the event is not getting triggered.

What am i missing here?


Thanks in advance.

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all,

I am using a listview to display thumbnail of images with some text. i have used largeicon view to display them.

i have created the thumbnail images and its displayed. as in explorer, i need to have the thumbnail image displayed as a folder. (like a border to the thumbnail and text).

How can i do it? i saw a article here in Codeproject but the code is in VC++.and i am not aware of this.

Is there any way to accomplish the same?

Thanks in advance.[IMG]http://www.codeproject.com/script/images/smiley_smile.gif[/IMG]

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all,

how to wrap a text of a item to the next line of listview
if the length is too long?

i found in msdn that the labelwrap property works only if the view mode is set to largeicon or smallicon.

i need to set the view mode to Tile and i need to wrap the text

how is it possible?

Thanks in advance
Regards

Exelio

Exelio 0 Junior Poster in Training

hi guys,

i solved it by myself. for everybody's reference,

iter1 = iterator.Current.SelectChildren("content", "http://tools.search.yahoo.com/mrss/");

i need to include the namespace URI in the selectchildren method and it worked.

Thanks

Regards

Exelio

Exelio 0 Junior Poster in Training

hi,

You may be new to .net development, but this is the basic work. a simple search in google will help you solve your problem.

nobody here is going to do homework for you. We have the most helpful tool google, have you tried searching?

try searching for creating login form in C# and you should be able to find it within seconds.

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all,
i have the following xml file.

<rss version="2.0" xmlns:media="http://tools.search.yahoo.com/mrss/" >
<channel>
<title>SWF media</title>
<link>http://www.blogdigger.com/media/</link>
<description>Recent .swf files found by Blogdigger</description>
<item>
<title>Dollar Bus Rolls Into Town</title>
<link>http://feeds.feedburner.com/Chicagoist?m=1115</link>
<description>some description</description>
<pubDate>Thu, 23 Mar 2006 14:11:57 EST</pubDate>
<enclosure url="http://www.kitschn.com/flash/MenuCoverPage-DrinksMenu09-05.swf" type="application/x-shockwave-flash"/>
<media:content url="http://www.kitschn.com/flash/MenuCoverPage-DrinksMenu09-05.swf" type="application/x-shockwave-flash"/>
</item>

<item>
<title>E-mail</title>
<link>http://billarnold.typepad.com/poet_in_motion/2006/03/email.html</link>
<description>description 2/description>
<pubDate>Wed, 22 Mar 2006 17:28:28 EST</pubDate>
<enclosure url="http://www.softlab.ece.ntua.gr/~sivann/pub/swf/may02-smilepop-soapbox4.swf" type="application/x-shockwave-flash"/>
<media:content url="http://www.softlab.ece.ntua.gr/~sivann/pub/swf/may02-smilepop-soapbox4.swf" type="application/x-shockwave-flash"/>
</item>
</channel>
</rss>

i am using xpath to navigate through this xml file.
i used the following code to navigate through items node.

XmlDocument doc = new XmlDocument();
doc.Load(xmlfile);

XPathNavigator nav = doc.CreateNavigator();
XPathExpression exp = nav.Compile("rss/channel/item");

XPathNodeIterator iterator = nav.Select(exp);
XPathNodeIterator iter1;
     while (iterator.MoveNext())
      {
        iter1 = iterator.Current.SelectChildren("media:content", "");
         if (iter1.Count > 0)
         {
            while (iter1.MoveNext())
              {
                if (iter1.Current.HasAttributes == true)
                 {
                   string url = iter1.Current.GetAttribute("url", "");
                 }
              }
         }
      }

but when i execute the code, the iter1.count always returns zero. if i select anyother children(like title or description)i am able to display the value.but when i select media:content(one of the subitems of item) i am not able to display the attribute value.

Where am i going wrong?

Any suggestions please

regards

Exelio

Exelio 0 Junior Poster in Training

hi,

I am not sure whether i understood you fully. but a timer runs in a thread.
Why do you want to have a timer in a new thread?

could you please elaborate your requirement so that we can help you?

Regards


Exelio

Exelio 0 Junior Poster in Training

hi,

Check out this link.

http://www.thescripts.com/forum/thread227955.html
and also this.
the code is in vb. you can convert it to csharp as well,
http://www.developerfusion.co.uk/show/1021/

Hope this helps.

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all.

Is it possible to display an image in all buttons in a
datagridview(Windows Forms) button column? if yes,

can you help me how to do it?

Thank you,

Regards

Exelio

Exelio 0 Junior Poster in Training

hi

You are welcome, please post the thread as solved.so that it can help someone.

Regards

Exelio

Exelio 0 Junior Poster in Training

hi,
In VS 2005, the ConfigurationSettings is obsolete. try using the following.

Add a reference to System.Configuration,

then in the code,

using System.Configuration;

string connectionstring=ConfigurationManager.AppSettings["Connection"];
and then use the connectionstring variable.

hope this helps.

Regards

Exelio

Exelio 0 Junior Poster in Training

hi,

Ofcourse that makes the difference, thanks a lot.its working now.

Thanks again

Regards

Exelio

Exelio 0 Junior Poster in Training

thanks guys.i solved it myself.

for anybody's reference, i used beginedit(true) and endedit() methods within the cell click event to update the cell valyes.

Thanks again

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all,

I am working in a windows application. i have a text say for eg,

<img src="http://static.ibnlive.com/pix/sitepix/06_2007/kumaraswamy_cm90.jpg"
alt="BACKTRACKING? Kumaraswamy says he never said he would step down on October 3."
title="BACKTRACKING? Kumaraswamy says he never said he would step down on October 3"
border="0" width="90" height="62" align="left" hspace="5&"/>
Kumaraswamy has denied reports that he would step down on October 3

i need to remove the img tag entirely and display only this part.
Kumaraswamy has denied reports that he would step down on October 3

i tried using the following regular expression to extract img tag.but its not working

Regex r=new Regex("<img[^<>]+>")

can anybody help out with this?

Thanks in advance.:)

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all,

I am using a datagridview to display contents of a xml file. say i have a xml file like this.

<xml version="1.0" encoding="UTF-8">
<maincategory>
<cat1>
<title>Category1</title>
<link>http://www.w3schools.com</link>
<description><img src="http://static.ibnlive.com/pix/sitepix/09_2007/flames_ramsetu90.jpg" >some description</description>
</cat1>
<cat2>
<title>Category2</title>
<link>http://www.ibnlive.com</link>
<description><img src="http://static.ibnlive.com/pix/sitepix/09_2007/rahul_gandhi_white90.jpg"
>some description</description>
</cat2>
</maincategory>

initially i display only the title of the category in the grid.
when the cell is clicked, i display title as well as description. when i click the cell again, only the title should be displayed.
i have managed to do this part.

the following code is for the first time click
if (cell_click_flag[rindex]==false)
{
TextAndImageCell cell = (TextAndImageCell)datagridview1.CurrentCell;
cell.Value = "";
cell.Image = Image.FromFile(Application.StartupPath + "//spacer.gif");
datagridview1.CurrentCell.Value = datagridview1.Rows[rindex].Cells["Description"].Value;
cell.Style.Alignment = DataGridViewContentAlignment.TopLeft;
cell_click_flag[rindex] = true; datagridview1.AutoResizeRow(rindex, DataGridViewAutoSizeRowMode.AllCells);
}
else if (cell_click_flag[rindex] == true)
{
//for the second time click
TextAndImageCell cell = (TextAndImageCell)dat.CurrentCell;
cell.Value = "";
cell.Image = Image.FromFile(Application.StartupPath + "//spacer.gif");
datagridview1.CurrentCell.Value = datagridview1.Rows[rindex].Cells["temp_title"].Value;
cell.Style.Alignment = DataGridViewContentAlignment.TopLeft;
cell_click_flag[rindex] = false; datagridview1.AutoResizeRow(rindex, DataGridViewAutoSizeRowMode.AllCells);
}

but when i again click the cell, only the title is displayed and not the description.i tried debugging, the value contains both title and description but only title is displayed.

I could not understand the problem.

Can anybody suggest me with some ideas?

Exelio 0 Junior Poster in Training

hi all,

I am using a datagridview to display contents of a xml file. say i have a xml file like this.

<xml version="1.0" encoding="UTF-8">
<maincategory>
<cat1>
<title>Category1</title>
<link>http://www.w3schools.com</link>
<description><img src="http://static.ibnlive.com/pix/sitepix/09_2007/flames_ramsetu90.jpg" >some description</description>
</cat1>
<cat2>
<title>Category2</title>
<link>http://www.ibnlive.com</link>
<description><img src="http://static.ibnlive.com/pix/sitepix/09_2007/rahul_gandhi_white90.jpg"
>some description</description>
</cat2>
</maincategory>

initially i display only the title of the category in the grid.
when the cell is clicked, i display title as well as description. when i click the cell again, only the title should be displayed.
i have managed to do this part.

the following code is for the first time click
if (cell_click_flag[rindex]==false)
{
TextAndImageCell cell = (TextAndImageCell)datagridview1.CurrentCell;
cell.Value = "";
cell.Image = Image.FromFile(Application.StartupPath + "//spacer.gif");
datagridview1.CurrentCell.Value = datagridview1.Rows[rindex].Cells["Description"].Value;
cell.Style.Alignment = DataGridViewContentAlignment.TopLeft;
cell_click_flag[rindex] = true; datagridview1.AutoResizeRow(rindex, DataGridViewAutoSizeRowMode.AllCells);
}
else if (cell_click_flag[rindex] == true)
{
//for the second time click
TextAndImageCell cell = (TextAndImageCell)dat.CurrentCell;
cell.Value = "";
cell.Image = Image.FromFile(Application.StartupPath + "//spacer.gif");
datagridview1.CurrentCell.Value = datagridview1.Rows[rindex].Cells["temp_title"].Value;
cell.Style.Alignment = DataGridViewContentAlignment.TopLeft;
cell_click_flag[rindex] = false; datagridview1.AutoResizeRow(rindex, DataGridViewAutoSizeRowMode.AllCells);
}

but when i again click the cell, only the title is displayed and not the description.i tried debugging, the value contains both title and description but only title is displayed.

I could not understand the problem.

Can anybody suggest me with some ideas?

Exelio 0 Junior Poster in Training

hi,

try using the SelectionChanged event of the datagridview. you can use arrow keys to navigate through the records and this event gets fired automatically.


Hope this helps.


Regards

Exelio

Exelio 0 Junior Poster in Training

please show me a codes for C#

Show codes for What?

If you could explain your problem clearly,people may help you out.

Thanks

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all,

i am trying to display a xml file in a datagridview.

i am using windows application with C#.

say for example, i have a xml file like this,

<xml version="1.0" encoding="UTF-8">
<maincategory>
<cat1>
<title>Category1</title>
<link>http://www.w3schools.com</link>
<description>&lt;img src=&quot;http://static.ibnlive.com/pix/sitepix/09_2007/flames_ramsetu90.jpg&quot; alt=&quot;some description</description>
</cat1>
<cat2>
<title>Category2</title>
<link>http://www.ibnlive.com</link>
<description>&lt;img src=&quot;http://static.ibnlive.com/pix/sitepix/09_2007/rahul_gandhi_white90.jpg&quot;
some description</description>
</cat2>
</maincategory>

in the description i have a img tag containing a image from any site.
i have columns to display title,description.
i need to display the image along with the text in the same column description.

Adding an image column will display the image as a separate column. how can i display the image in the same column
along with the text?

Thanks in advance

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all,

On the top 100 pages of a site I would like to add a list of pages that people who visited that page had also visited during their visit.

i will at the maximum post 5 links that was visited by the people.

i don't want to know the number of times the user visited my site.rather i would like to know the pages the user visited.and i need to store this information in a database.

Is there any way to get this kind of information?

Thanks in advance.
Regards

Anuradha

Exelio 0 Junior Poster in Training

hi all,

I am working on a project where i need to extract all the rss feeds in a given url.Also i need to give a alert whenever a new feed is added in the rss file.

I am able to extract all the rss feeds from the given url.

How can i know when a new feed is updated in the RSS file?

Thanks and regards

Exelio:)

Exelio 0 Junior Poster in Training

hi raju,

If you want to move the file from one directory to another within the same client machine,try using the move method of the directory class.

use system.io namespace and use the directory class like this.

Directory.Move(old path,new path)

try this.

Thanks and regards

Exelio

Exelio 0 Junior Poster in Training

Hi,
Go to Control panels -> Administrative tools -> Internet information services, and browse to your application folder. right click it -> properties -> directory security tab -> click the upper edit button -> ensure yourself that only checkbox checked is 'integrated windows authentication'

Try this and see if it works.

Thanks and regards

Exelio

Exelio 0 Junior Poster in Training

hi,

I am not sure why u r being prompted for userid and password in mozilla.see if authentication mode is set on in the options for mozilla
and try again.

Thanks and regards

Exelio:)

Exelio 0 Junior Poster in Training

hi,

I had the same problem as u had. i reinstalled my IIS and it worked fine. Also for the error,
"unable to start debugging on the web server. access is denied"

after u reinstall the IIS, right click the project and say create the application and then run the application.

Hope you understood.


Thanks and regards

Exelio

Exelio 0 Junior Poster in Training

Hi,

Can someone tell me how to put one page in frame from
event in another frame.

There is a frameset on the page with 2 frames (top
bottom) I have a paging done in top frame and when i click
on that link some aspx page should be displayed in bottom
frame.

Please help me.

Thanks and Regards

Exelio

Exelio 0 Junior Poster in Training

hi,

I am creating a rss feed for a blog site. I am able to create the rss(XML file).

I would want to implement paging in the xml file created. say i would like to display only 5 items per page in the rss feed(XML file) instead of the entire 15 items.

How can it be done in .NET?

Any suggestions plz.

Thanks and regards

Exelio:!:

Exelio 0 Junior Poster in Training

hi guys,

I am creating a blog site.I need to create a rss feed for the same.

I am able to create a rss feed it.but i would like to know how to read the rss file in asp.net.

Thanks and regards

Exelio

Exelio 0 Junior Poster in Training

hi,

Really thanks for ur responses especially to tgree.

After i resize the images, they are displayed with correct resolution.
But i need to tilt the images to a certain angle and once i do that the images become pixelized.

Any other suggestions on this plz.

Thanks and regards

Exelio

Exelio 0 Junior Poster in Training

hi,

I have a text element which needs to be rotated at 90 degrees.

i put the text in a div layer and used the following code to rotate,

oDiv.style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=3)';

This code works fine in IE but i am not able to run it in other browsers.

Can anyone suggest help on this regard

Thanks in advance

Regards

Exelio:-|

Exelio 0 Junior Poster in Training

hi,

I am doing an application which displays images dynamically.i have resized the images to fit to the screen.

Now when i display the images, the images seems to be pixelized.

There are more dots around the border of the image.

How can i reduce this pixelization?

Any ideas.

Thanks in advance

Regards

Exelio :!:

Exelio 0 Junior Poster in Training

hi,
Really thx for help.

I tried using ASP.NET and it worked fine. But i have a doubt.Is there no option in javascript by which i can do the same.

Like draw an empty image and set the text and another image dynamically.I saw there are methods drawstring and drawImage available in javascript.

Any more help on this regard

Thanks once again.

Regards

Exelio

Exelio 0 Junior Poster in Training

hi guys,

I need to create an image with a plain background and a color.and in that ,i need to bind a text and an logo.

The text and the logo(a jpg file) are dynamic.

How can i do this in javascript?

Hope I am clear with the question.....

Plz help urgently.

Thanks in advance.

Regards

Exelio

Exelio 0 Junior Poster in Training

hi kathy,

There is an error in ur code if u notice.

System.Data.SqlClient.SqlDataAdapter SqlCmd=new System.Data.SqlClient.SqlDataAdapter("Select * From Person Where Username='" +
UserName.Text + "' And Password = '" +
Password.Text + "'");


SqlCmd.Fill( ds );


The error which u get

'System.Data.SqlClient.SqlDataAdapter' is a 'type', which is not valid in the given context.

explains that sqldataadapter is a type.u have not created an object for the type and the type sqldataadapter cannot be used as such.

Secondly,
The name 'SqlCmd' does not exist in the current context.

U have used SqlCmd here but u have not delcared it.

Hope you understand.

Thanks

Regards

Exelio

Exelio 0 Junior Poster in Training

hi,

I need to select a directory using asp.net.Using the file control will select the files from the directory.But i need the user to select the directory itself in which he wants to save the file..

Is it possible?

Thanks in advance

Regards

Exelio:)

Exelio 0 Junior Poster in Training

hi seth,

I have tried the same coding with access too and i dont seem to have a problem.

Check ur provider path again.
Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database Locking Mode=0;Data Source=<ur mdb path>;Jet OLEDB:Engine Type=5;Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:System database=;Jet OLEDB:SFP=False;persist security info=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Create System Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1


When u r using access,use OledbCommandBuilder and not sqlcommandBuilder.

Can u tell me exactly what kind of error u get?

Thanks

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all,

I need to create a zip file which can hold atleast 50 images.I have searched in net and found that there is a component which can help me with this.

But i dont want to use a free component.I must be able to create a zip file in my asp.net code.

Is there any namespace available to do this?

Please reply earlier.

Thanks and regards.

Exelio

Exelio 0 Junior Poster in Training

hi sunil,

To create a webservice,

Exelio 0 Junior Poster in Training

hi seth,

Looks like u r really frustated.U need to make slight changes in the code. Below is the code with the changes.

Dim conService As New SqlConnection("ur path")
Dim currpath As String = System.Environment.CurrentDirectory
Dim sqlStr As String
Dim sqlStr2 As String
Dim serviceDT As New DataTable
Dim serviceDS As New DataSet
Dim daService, daStatus As New SqlDataAdapter
Dim rowIndx As Integer
Dim currMan As CurrencyManager

PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
sqlStr = "Select * from <table1>"
sqlStr2 = "Select * from <table2>"
daService.SelectCommand = New SqlCommand(sqlStr, conService)
Dim cbServiceCalls As New SqlCommandBuilder(daService)
daStatus.SelectCommand = New SqlCommand(sqlStr2, conService)
conService.Open()
daService.Fill(serviceDT)
daService.Fill(serviceDS, "<table1>")
daStatus.Fill(serviceDS, "<table2>")
DataGrid1.DataSource = serviceDS.Tables("<table1>")
DataGrid2.DataSource = serviceDS.Tables("("<table2>")
currMan = Me.BindingContext(serviceDS, "<table1>")
FillTextBoxes()
End Sub

Sub FillTextBoxes()
txtSerOrdNum.Text = CInt(serviceDT.Rows(rowIndx)("ServiceOrdNum"))
txtCustId.Text = CInt(serviceDT.Rows(rowIndx)("CustomerID#"))
txtReceived.Text = CStr(serviceDT.Rows(rowIndx)("CallReceivedOn"))
txtMachine.Text = CStr(serviceDT.Rows(rowIndx)("MachineModel"))
txtSerial.Text = CInt(serviceDT.Rows(rowIndx)("SerialNum"))
txtProblem.Text = CStr(serviceDT.Rows(rowIndx)("ProblemDescription"))
txtTech.Text = CStr(serviceDT.Rows(rowIndx)("AssignedTech"))


End Sub

Private Sub btnNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNext.Click
If rowIndx < serviceDT.Rows.Count - 1 Then
rowIndx = rowIndx + 1
FillTextBoxes()
Else
rowIndx = 0
FillTextBoxes()
End If

End Sub


Private Sub btnADDds_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnADDds.Click
Dim newRec As DataRow
newRec = …

Exelio 0 Junior Poster in Training

hi Chaitanya,

Sorry for the delay.I uninstalled my IIS and VS.NET and installed again.Now its working.

But i have saved the batch file which u gave.Will use in the near future.

Thanks for your help.

Regards

Exelio

Exelio 0 Junior Poster in Training

hi david,

Thanks again for your response. No. I am using XP Prof.anyway i was able to find out the problem.and i am able to display the security tab now.

i have set the full rights access to the aspnet account.But still when i run the asp.net application, I am still getting the same problem.

Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\webApplication1\5163874c\83859bc7" is denied.

What should i do?

Thanks in advance..

Regards

Exelio

Exelio 0 Junior Poster in Training

hi all,

I am having this problem for a long time.Everytime i restart my machine,i get this error related to IIS.

Default Website Stopped. I have tried to reinstall my IIS everytime to no use.

But still i get the same error.

Can anyone suggest help on this.

Thanks in advance.

Regards

Exelio.

Exelio 0 Junior Poster in Training

hi,

Looking at your code,the best way to use webservice with databases is to use dataset.store the values in a dataset and return the dataset from the function.

hope this helped.

Thanks
Regards

Exelio

Exelio 0 Junior Poster in Training

hi yatt,

The coding which u sent seems to be ok.Did you set the autopostback property of both the dropdownlists to be true.

Hope this solved ur problem.

Thanks

Regards

Exelio

Exelio 0 Junior Poster in Training

Hi David,

Thanks for your reply.But i still have the same problem.
1) I have my drive formatted in NTFS.
2) I have the administrator previlages.

3) I have checked the path u gave.HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

But i could not find the NoSecuritytab option in it.
Does that mean that there is no tab called security in my System.

But still i do not have the security tab.

Wht could be the problem?

Thanks in advance.

Regards

Exelio

Exelio 0 Junior Poster in Training

Hi,
I have created a asp.net application.when i try to execute the application, I am getting this error.
Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\webApplication1\5163874c\83859bc7" is denied.

While searching the net,i found this solution.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

But I do not have the security tab when i right click the properties of the file.
I have tried reinstalling the iis and also the VS.Net.
Any help on this please.

Regards

Exelio:sad:

Exelio 0 Junior Poster in Training

Hi,

I have created a HTML template for sending emails to the clients. I read the values from the database and fills them in the template.

Now i want to read the contents of this HTML template.

Can anybody suggest me how to do this?

Thanks in advance

Regards

Exelio

Exelio 0 Junior Poster in Training

hi,
Since you are using vb.net,there are some changes to be made in the code.

while myReader.Read
txtName.Text = myReader("PName").ToString
txtIC.Text = myReader("NoIC").ToString
txtAge.Text = myReader("Age").ToString
txtGender.Text = myReader("Gender").ToString
txtRace.Text = myReader("Race").ToString
txtStatus.Text = myReader("Status").ToString
txtOccupation.Text = myReader("Occupation").ToString
end while


try this
Hope this helps

Regards

Exelio