|
I don't know wheather you can edit Web.config or not.
But I have done this thing using xml file.
I have add key connectstring in xml file. And I can chamge it runtime.
Hope you like using xml file
Regards,
Mayank Parmar
Senior Software Engineer
Amba Tech
Gandhinagar, India
|
|
|
|
|
Hello,
I am sure you can modify the web.config file. After all its only xml. Moreover, how would you change the connection string if you wanted to connect to another database at run-time.
I am sure I am not to far off, any extra help would be most grateful,
Steve
|
|
|
|
|
:-Dcan any one explain me about vsdisco file
shuaib
|
|
|
|
|
VSDISCO files are DISCO files that enable dynamic discovery of Web Services. ASP.NET links the VSDISCO to a HTTP handler that scans the host directory and subdirectories for ASMX and DISCO files and returns a dynamically generated DISCO document. A client who requests a VSDISCO file gets back what appears to be a static DISCO document
Thanks,
Sun Rays
|
|
|
|
|
Hi All,
In my new project I have to work both windows and webservices Commonly,can we include both win/web services in single solution file?
Pls tell me what is the advantage of using both in single project?
Thanks to all .
|
|
|
|
|
I`m using AJAX`s CollapsiblePanel (http://ajax.asp.net/) and I`m experiencing a quite annoing problem:
I set the property
Collapsed="True"
so the panel would be collapsed after page load. And it is. But after loading the page, I can see that the panel firstly expands, and then collapses. It looks disguisting. Do you have any idea how to repair it? (I want that panel to be collapsed at the begining, not expanded and then collapsed after 0,5sec)
|
|
|
|
|
How to change background color of a desired row?
I tried something like that:
protectedvoid Button1_Click(object sender, EventArgs e)
{
GridViewMain.Rows[1].BackColor = System.Drawing.Color.Red;
}
but it doesn`t work
Thank you very much for any help in advance
|
|
|
|
|
Here is the exact event and code
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex==1)
e.Row.BackColor = System.Drawing.Color.Red;
}
|
|
|
|
|
Did you try it?
Because I did and it did not work. I checked under debug that it gets to the vital line:
e.Row.BackColor = System.Drawing.Color.Red;
but I still can`t see any difference - all rows are white.
|
|
|
|
|
Yes i did then i write here.
Here is the exact event and code
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex==1)
e.Row.BackColor = System.Drawing.Color.Red;
}
|
|
|
|
|
hi i am makling a custom validation for my textbox
however the format i need for the validation is:
#=number
@ = alphebate
@#######@
and i am using asp.net2 with c#
any one got any ideas on how to do this as i am having thouble validating that the first index of the input is an alphebate >.<
|
|
|
|
|
Hi Friends,
I am trying to read file info using following code.
When i run it on my local machine it works 100% but when I upload it to hosting server it throws exception!! or in other words it goes to else all the time
can any one hlep me why?
string fileOpenPath =this.FileUpload1.FileName.ToString();
FileInfo fi = new FileInfo(fileOpenPath);
//Ceck if file file exists
if (fi.Exists )
{
//do some work
}
else
{
//show message
}
|
|
|
|
|
That's because the file doesn't exist on the server. You can't use a file path that references a file on the client computer to access a file on the server.
When you are running it on your own computer, the client and the server is the same, so the file that exists on the client also exists on the server.
---
single minded; short sighted; long gone;
|
|
|
|
|
Could you please help me how can i do that then. some Code please
|
|
|
|
|
The FileUpload object contains the data from the uploaded file. Get the data from there, and if you need it as a file, create a file and write the data to it.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
i am trying to incorporate a captcha in my project to prevent automated registrations. for the same downloaded various third party controls..
the prtoblem is that when ever i drag adn drop the captcha control, no image is shown.
though wen i run the original code file, it works perfectly fine.
i have even copoied the DLL in the BIN folder, created a new item in the toolbox. everytime the problem is of the image that is npt created.
can nyone tell me where i am going wrong.
Kunal
|
|
|
|
|
Hi all,
how to send parameters in sql statement using data adapter.
Ex: select * from emp where eno=2
here eno=2 is given dynamically through textbox in a webform.how can insert parameter values to that sql statement.
|
|
|
|
|
select * from emp where eno= '"+Textbox1.Text+"
Kunal
|
|
|
|
|
Thanks kunal,it is working
have a nice day
|
|
|
|
|
Look for SqlParameter and SqlCommand .
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
Hi, i would like to know the difference between Response.Redirect() and server.Transfer() and in which situation what to use.
thanx, yamini
|
|
|
|
|
hi,
1.Server.Transfer acts as an efficient replacement for the Response.Redirect method.
2.Response.Redirect specifies to the browser to request a different page. Because a redirect forces a new page request, the browser makes two requests to the Web server, so the Web server handles an extra request.
3. Server.Transfer, which transfers execution to a different ASP page on the server. This avoids the extra request, resulting in better overall system performance, as well as a better user experience.
|
|
|
|
|
thanx and can u please tel me the situations where these particularly used.
|
|
|
|
|
Hi, I have page1 and page2. Now i want to access the controls of page1 in page2. How is this possible. Plz answer....
Thanx, Yamini
|
|
|
|