|
i had assumed that if i passed the data into a property of the top level master that my control names would be safe but it seems that didn't work but i'm using that as a temporary measure.
I've now got a hidden field on the masterpage that contains some data that my javascript file can pickup and append to the control names.
I've got a setup method inside my js file that registers the events on the controls i need to hook up to. this now reads the prefixes for the names of the controls from the hidden field on the page. I suppose a benefit of the new model is that i can support multiple instances of the same control on the page for less agro. This method was recommended on several sites, all of which claimed attributes were dead. I was shocked to see ASP splattering my code with script tags (and not even in the head).
Thanks for your help, all help is good at the moment, i seem to be picking up ideas from here and there, many oppose each other and i suspect come are more esoteric than practical, problem at the moment is that i don't know what works and what doesn't.
Russell
|
|
|
|
|
Hi,
I have an excel files "c:\test.xls
I want to modify excel tables with asp.net .
I am using this codes but it is not run correctly.
How can i solve this problem?
Thanks.
Dim sConn As String
Dim OleConn As OleDbConnection
Dim OleCmd As OleDbCommand
sConn ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test.xls;Extended Properties=""Excel 8.0;HDR=No;"""
OleConn = New OleDbConnection(strConn)
OleConn.Open()
OleCmd = OleConn.CreateCommand()
Olecmd.commandtext="UPDATE [sheet1$F1:A1] SET F1 ='6'"
OleCmd.ExecuteNonQuery()
OleCmd = Nothing
OleConn.Close()
|
|
|
|
|
Hi,
I have a site in which i want that some page will be displayed on http protocol and while some of the pages will displayed on https. how can i do it by using SSL. And above all i want to do it in Asp.net 1.0.
Thanks in advance
Pankaj Tanwar
software developer
smartbuzz solution chandigarh
|
|
|
|
|
i want to redirect http://www.mydomain.com/index.aspx to http://www.mydomain.com
i am trying with the following code in Global.asax.
***************************************************************
if (Request.Url.ToString().Contains("index.aspx"))
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location", "http://www.mydomain.com");
Response.End();
}
**********************************************************************
the issue the redirect loop is not ending. Bcoz the requested path for http://www.mydomain.com is also index.aspx.
so the loop is continuing.
any body know the solution for this issue.
Thanking you.
Jes.
|
|
|
|
|
HI,
Better you put "default.aspx" page as a startup page for your domain.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi friends
i have two xml file.
My code is:
XmlDataDocument xdoc = new XmlDataDocument();<br />
XmlTextReader Reader = new XmlTextReader(server.MapPath("xml1.xml"));<br />
xdoc.DataSet.ReadXml(Reader, XmlReadMode.InferSchema);<br />
<br />
XmlTextReader Reader1 = new XmlTextReader(server.MapPath("xml2.xml"));<br />
XmlDataDocument xdoc1 = new XmlDataDocument();<br />
xdoc1.DataSet.ReadXml(Reader1, XmlReadMode.InferSchema);<br />
<br />
<br />
<br />
xdoc.DataSet.Merge(xdoc1.DataSet);<br />
but i am gettig error here.I cant merge.Can Any one give m solution.
Errpr:Cannot add or remove tables from the DataSet once the DataSet is mapped to a loaded XML document..
Thanks In advance
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi TO ALL,
When I typed www.codeproject.com in my browser. The Browser open the www.codeproject.com Pages. I want to know what is Background Process from Request to Display the Pages in Browser and At that Process when when CLR executed.
Mohan Balal
|
|
|
|
|
Hi All,
i want to know that, some times website performance is very slow. response time is very high.what are the causes for this.
pls tell me.
|
|
|
|
|
There may be more images loaded in that page.
Regards,
Satips.
|
|
|
|
|
Database issues, concurrency, latency, larger pages being requested. These are just some of the many issues that could be affecting performance.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi All,
I need to sort and freeze GridView, I am using ASP.NET2.0(VB).
Please help me...
Thanks in advance...
|
|
|
|
|
Learning ASP.NET 2.0 wrote: freeze
What do you mean by freeze?
Learning ASP.NET 2.0 wrote: sort
Set SortExpression property of each column in your GridView , Set AllowSorting to true , and also you can user GridView.Sort() method.
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
Thanks for the reply. Freeze means fixing heading row of Gridview.
I need freeze and sorting both.
Thanks again...Please help...
|
|
|
|
|
If you mean fixing Size, you have to set the size in HeaderStyle .
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
No I mean it behaves like an Excel freeze pane. It fixes the heading and only item scrolls.
Please help...
Thanks...
|
|
|
|
|
Hi all! Can anybody tell me, how I can jupm to other page of my ASP.NET project. I try something like this System.Diagnostics.Process.Start( <page_name> ); , but nothing happened.
|
|
|
|
|
Hi,
Why dont you use Response.Redirect or Server.Transfer?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
thank you ever so much, it's work.
|
|
|
|
|
System.Diagnostics.Process.Start( <page_name> );,
This one start a new process at server and it depends on WinForm Application or Console Application.Use Response.Redirect();P
|
|
|
|
|
hi friends
on aspx form i have one server button ( Save ) and one HTML button (Canel)
On Save button values of text box store in database
on Cancel button I Just invisble one panel
both buttons are working fine
when i press save button and
when values of text box already exist in table
it gives me an Sql Error 2627
i shown error desc in label
now i want to cancel it means invisible panel
but it doesn't work here
how can i make it invisible in such condition
thanks
|
|
|
|
|
I don't think that cancel button has to do anything with that. What is happening when you are clicking cancel button after the error is displayed.
Best Regards,
Apurva Kaushal
|
|
|
|
|
after clicking html button
i need to invisble panel
run time label is also invisble
when error comes label gets visible
and i shown the error on label
when ever error is shown and i press the cancel button
panel doesn't get invisible
|
|
|
|
|
What code have you written for hiding the panel? Is it a javascript?
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi guys i am currently trying to make my table height cover the whole page
my webpage is something like this:
________
|______|
|__|___|
as u can see my table have 3 cells i am trying to make the whole table stretch the maximum size of the webpage without a scroll bar pls help
i am using in asp.net
|
|
|
|
|
I seem to remember that you can use the HEIGHT="100%" attribute for this.
Deja View - the feeling that you've seen this post before.
|
|
|
|