|
You'll have to have a version of IIS installed. IIS on winxp pro supports only one website, so for creating a new website you'll have to have IIS installed on a win server (NT, 2003 you name it). If you want to test on your winxp machine, you must create a virtual dir (application).
In case you created a new website on a server machine, you can visit the website by adding the website name in you hosts file (drive:\\window\system32\drivers\etc\hosts) and typing the url of the website in your browser.
In case you added a virtual dir in IIS on your workstation, enter http://yourcomputername/VirtualDirName/startpage.aspx
|
|
|
|
|
hi all
i want to change font-weight of the hyperlink which is in masterpage
i want to change from the content page
thanks in advance
thanks n regard
srinandan
|
|
|
|
|
Use the Page.Master property to get a reference to the master page. Cast it to the exact class of your master page to access it's members.
---
b { font-weight: normal; }
|
|
|
|
|
hi
i have to change it font at runtime when the content page is load
thanks
|
|
|
|
|
srinandan.. wrote: hi
i have to change it font at runtime when the content page is load
The content page is never loaded separately from the master page. Together they form the finished (x)html document that is sent to the browser.
---
b { font-weight: normal; }
|
|
|
|
|
Inside the content page
Dim HyperLink1 as HyperLink
HyperLink1=CType(Master.FindControl('HyperLink1'),HyperLink)
HyperLink1 now contains the reference of HyperLink1 control placed in the master page
Use Hyperlink1 to manipulate as you would do on a normal page.
|
|
|
|
|
hi
thanks a lot. this one idea is working properly
we can do it as follows
((HyperLink)(Master.FindControl("HplID"))).Font.Bold = true;
thanks
srinandan
|
|
|
|
|
Hi Friends,
I am have been facing a strange problem since long time. I have tried to find its solution from many places but I could not succeed.
The problem is like following.
I my web application I am providing facility to upload images to the server.
I have managed to open the file open dialoge box using "File" control of html and get the select file path in a server side text.
Now I am copyiny that file to the server by following code.
FileInfo fImageFile = new FileInfo(txtCompImagePath.Text);
if(fImageFile.Exists)
{
fImageFile.CopyTo(MapPath(ImageDirPath + "/"fImageFile.Name, true);
}
Everything works fine until user selects his image from the folder My Folder of from the Desktop.
I mean when user select image from My Documents of from the Desktop the fImageFile.Exists returns false that means is tells that the file with specified path is not there.
If user select image from any other folder from any drive it works fine and file copying goes smoothly but Images from My documents and Desktop folders could not be copied. and moreover I woder why is shows that the file doesnt exist while the file resides the physically.
Can any please tell the cause and solution for this?
Thanks to all of you in advance.
Chetan Ranpariya
|
|
|
|
|
I am not familiar with the way you're uploading the files and the problems sounds really weird...
but here is the best way to upload a file by using the FileUpload control:
<br />
if (oFile.PostedFile != null)<br />
{<br />
string fullFileName = oFile.PostedFile.FileName;<br />
string fileName = System.IO.Path.GetFileName(fullFileName);<br />
<br />
oFile.PostedFile.SaveAs(Server.MapPath(string.Empty) + "\\" + fileName);<br />
}<br />
this code will upload the file to the requested directory... (you can easily change the saving directory by editing the parameter in the SaveAs function..)
and it should work with no problems...
Good luck,
Tal Kain.
|
|
|
|
|
I have a DataView. I am Sorting the DataView and then removing the last row before binding it to dataGrid.
dvViewOrder = new DataView(dtViewOrder);<br />
dvViewOrder.Sort = "VOD_ProductCategory ASC";<br />
if (dtViewOrder.Rows.Count >= 2)<br />
dtViewOrder.Rows.RemoveAt(dtViewOrder.Rows.Count - 1);<br />
OrderList.DataSource = dvViewOrder;<br />
OrderList.DataBind();
Even tough I am removing it afte sorting. It is removing a row and then sorting.
Can anyone help
Mads
|
|
|
|
|
Why don't u do that on the database side?
I mean in a stored procedure u get the number of total rows and the select using "Set Rowcount " [the number - 1]
Best Regards
3ala2
|
|
|
|
|
when making a new web application in vs.net 2003.
i m getting the following error..
"vc package is not available or not installed.."
from one of the sites i hd recommended to repair vs.net..
will it be a wise decision
any help
|
|
|
|
|
I guess you will have to repair it, you might already have checked out the Microsoft KB[^]
|
|
|
|
|
ya ya
i have gone thru that.
any way i m goin to repair
thanks for the suggetion
|
|
|
|
|
Hi friends
i want to convert string value in integer
i do like this but i have got error message that input string was not in correct format.
dim iA as integer<br />
iA=convert.toInt16("A")
Thanks in advance
PaTHaN
|
|
|
|
|
Of course. What kind of a number should "A" become??
|
|
|
|
|
in C# it successfuly run,i have problem in VB
I want to create random num for generating Imagecode for registration confirmation.
In c# i have done it but i got problem in Vb.
Pathan
|
|
|
|
|
I have got solution
dim ia as integer
ia = Convert.ToInt16(Convert.ToChar("A"))
Pathan
|
|
|
|
|
If you want to convert a hexa value to a decimal then have a look at the overloads of the Parse[^] method with the NumberStyles parameter.
|
|
|
|
|
If you are using 2.0 you may want to consider using TryParse. That will avoid the exception when the string can't be converted.
only two letters away from being an asset
|
|
|
|
|
iam having 10 triggers for a table
i want view the triggers
which trigger is firing
is it possible to know
or any system stored prodeure is avaliable in sqlserver 2000
with regards
|
|
|
|
|
Seems to me this question belongs to a diffrent forum
|
|
|
|
|
hi,
I have defined a button in aspx file and i'm not getting intellisense of that button in the aspx.cs file and getting error "cmdPrev (Id of Button) doesn't exists in the current context".
that button is simly placed in table not in repeater or datagrid.
Also i have checked the Inherits property of the Page it is same as aspx.cs file name.I tried a lot to solve this error but not succeeded .
Can you please help me to get rid of this problem.
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
Which ASP.NET version are you using?
|
|
|
|
|
i'm using asp.net 2.0 version and visual studio 2005 version
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|