|
Hai to all,
How to use tabindex property in a table,how it will work if we use this property???Give me solution with an example.
Thanks in advance
kissy
|
|
|
|
|
Kissy16 wrote: Give me solution with an example.
Give me your paycheck.
only two letters away from being an asset
|
|
|
|
|
Thanls for ur repsonse.
Here i am giving my code,Can i display each cell(each cell is a panel)by using tabindex or button_click event???Wat i have to do for this???
in .vb or .aspx wat code i have to give.Is it possible to do so????
asp:Table id="Table2" runat="server" CellPadding="0" CellSpacing="0"
asp:TableRow
asp:TableCell
asp:Panel runat="server" ID="pnl1"
asp:Label runat="server" ID="lblname" text=Name/asp:Label
asp:TextBox runat="server" ID="Textbox5"/asp:TextBox
/asp:Panel/asp:TableCell
asp:TableCell
asp:Panel runat="server" ID="pnl2"
asp:Label runat="server" ID="label1"hello/asp:Label
asp:TextBox runat="server" ID="txtname"/asp:TextBox
/asp:Panel
/asp:TableCell/asp:TableRow/asp:Table
kissy
|
|
|
|
|
Hi, i have to mix the dll method and classic methods both.
i have pages created using ajax (ussing ajax dll). and now i have to go from one page to another without any postback or refreshing like google.
So please ne one can help to redirect from one page to another like google.
i cant modify my old pages which have ajax.
Thanks in advance
|
|
|
|
|
AJAX is used to refresh the contents of the page that is being displayed without postbacks, not to redirect to another page. To do a redirect you need to use something like Server.Redirect on the server or something like window.location on the client.
only two letters away from being an asset
|
|
|
|
|
Hi,
can anyone tell me how to write the code for this:
If any number stored as a string, how can we convert the string in to number.
I mean number 18 stored as a string. I want to retrieve this string as number. How can I write the code for this?
thanks,
Suketh
|
|
|
|
|
It's very complicated.
Int.Parse("18");
A little research, say 30 seconds, and you should have found the answer.
only two letters away from being an asset
|
|
|
|
|
Convert.ToInt32(s);
where "s" is your string value
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi
I have presure here,so please send me mail back if any one know about create alias for subdomain or domains using asp.net
ravi
|
|
|
|
|
Hello every one!!!!
if i open project in in .net i am getting the following error
visual studio .NET has detected that the specified web server is not
running ASP.NETversion 1.1. you will unable to run ASP.NET web
applications or services
and i check the in IIS in that my default website is in stopped mode
i tryed to start by right click and click the start button
but iam getting the following error unexpected error 08xffe2740 occured.
Please reply me.....
hai all please clarify mny doubts
|
|
|
|
|
Try running aspnet_regiis.exe to make sure .NET has been registered with IIS.
only two letters away from being an asset
|
|
|
|
|
go to command prompt type text like
> aspnet_regiis -i
then it solve the ur problem
|
|
|
|
|
I'm amazed how people don't read the previous responses to see if they are actually adding anything of value to the discussion.
only two letters away from being an asset
|
|
|
|
|
How to register through command prompt
could to u tell me the process to register the aspnet_regiis-i
please dont mistake really i dont know....
step by step process.
hai all please clarify mny doubts
|
|
|
|
|
I have a dbf file which i need to access from asp.net page.
Can anyone explain to me which driver shall i use and how can i access?
Regards
hari
|
|
|
|
|
Use,
Dim ConectionObj As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=DBFFILENAME;Extended Properties=dBASE IV;User ID=Admin; Password=")
|
|
|
|
|
Guys, I’m trying to debug a web page I created, based on users selection from the drop down lists, I’m changing the preferences on the page (such as background color, text, font etc). Now the problem I’m running into is that it only happens when I click the button twice. The first time button gets clicked, nothing happens but there is a post back to itself. When I try to debug it by setting break points, I see that when the control gets returned back to the browser and I click the submit button after selecting the properties from the drop down lists, it goes through the code for the event handler (btn_Click()) and then when it reaches the end, it comes back to the top of the event handler (btn_Click())
and goes through the code again. When it finish executing it again, VS.Net (2003 ) opens up an error message box saying there is no more source code to execute and that DO YOU want to see the disassembled code. I’m not quite understanding why is it happening? BTW I’m using cookies to store the values from the drop down so I can use them on subsequent pages. Also I’m using inline styles sheets and in aspx changing the properties of body and table elements for instance. But that still doesn’t explain why it needs the button clicked twice??? Can someone please explain? The code is shown below:
<br />
<br />
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
if (!IsPostBack)<br />
{<br />
HttpCookie cookie = Request.Cookies["preferences1"];<br />
ViewState["Referer"] = Request.Headers["Referer"];<br />
<br />
if ( cookie != null )<br />
{<br />
BackColor.SelectedItem.Value = (string)cookie.Values["BackColor"];<br />
ForeColor.SelectedItem.Value = (string)cookie.Values["ForeColor"];<br />
FontSize.SelectedItem.Value = (string)cookie.Values["FontSize"];<br />
FontName.SelectedItem.Value = (string)cookie.Values["FontName"];<br />
NavControl.SelectedItem.Value = (string)cookie.Values["NavControl"];<br />
}<br />
}<br />
globalNav2.Visible = false;<br />
}<br />
<br />
<br />
<br />
public void btnSubmit_Click(object sender, System.EventArgs e)<br />
{<br />
<br />
HttpCookie cookie = new HttpCookie("preferences1");<br />
<br />
<br />
cookie.Values.Add("ForeColor",ForeColor.SelectedItem.Value);<br />
cookie.Values.Add("BackColor",BackColor.SelectedItem.Value);<br />
cookie.Values.Add("FontSize",FontSize.SelectedItem.Value);<br />
cookie.Values.Add("FontName",FontName.SelectedItem.Value);<br />
cookie.Values.Add("NavControl",NavControl.SelectedItem.Value);<br />
<br />
Response.AppendCookie(cookie);<br />
<br />
}<br />
<br />
|
|
|
|
|
Tina P wrote: if ( cookie != null )
{
BackColor.SelectedItem.Value = (string)cookie.Values["BackColor"];
ForeColor.SelectedItem.Value = (string)cookie.Values["ForeColor"];
FontSize.SelectedItem.Value = (string)cookie.Values["FontSize"];
FontName.SelectedItem.Value = (string)cookie.Values["FontName"];
NavControl.SelectedItem.Value = (string)cookie.Values["NavControl"];
}
Write the above code in a separate function and call it in Button_Click Event.
The problem is because,
The Page_Load Event is called first than the Button_Click Event eventhough you clicked the button.
I am sure your problem will be solved.. Have a great day...
|
|
|
|
|
Hi Venkatesh, thanks for your response. I see your point from code reusability and conciseness point of view, but I can't understand how extracting that code, and calling a function instead that will execute the same code from the same location would solve this problem. I mean are you saying that code in Page_Load needs to execute at the time of button click (menaing when the code for the button click event handler is executed).
Venkatesh, could you please help me out here! BTW the code sample that I am following is on http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/apps/cookies1/cookies1.src[^]. They are using two pages, I wonder if that has to do with that second click?
Please help.
Thanks
~TINA
|
|
|
|
|
Ignore what he said, it makes no sense at all, even from a code reuse point of view.
only two letters away from being an asset
|
|
|
|
|
Hey have to you tried what I said before replying to my solution?
|
|
|
|
|
Have you tried what you said? Do everyone a favor and delete it.
only two letters away from being an asset
|
|
|
|
|
Of course the Page_load event is fired before the Button_Click event but moving the code you indicated into a seperate method will have no effect. Notice that it has been placed inside the if(!IsPostBack). Since the button click, or dropdown event is a postback the code will be not be executed and so is not the problem. Also notice that it appears to be setting the selected value of the dropdowns based on the value in the cookie. Calling it from the button click event would do nothing more than reset the dropdown lists.
only two letters away from being an asset
|
|
|
|
|
Are the dropdown lists set to autopostback?
Although it doesn't solve your problem directly, if you need to have values available on multiple pages then there are better ways to store them, such session or cache. Using cookies is fine if you want the data persisted on the client and available for other sessions.
only two letters away from being an asset
|
|
|
|
|
Hi Mark, thanks for the response. No they are not set to Autopostback = true, since there are more than one property settings that a user can select from the drop downs (if you get a chance, please look at the link I mentioned in the prior post....that's pretty much the same code (as far as the cookies) I'm using. Also they are using two pages to demonstrate that... and if you run the sample from http://samples.gotdotnet.com/quickstart/aspplus/doc/stateoverview.aspx[^] scroll all the way down to client side cookies...you would know what I'm talking about??? It just really weird? Any ideas???
Thanks
~TINA
|
|
|
|