|
hi friends ..
i have to add a row run time in a table on click of a Add button..how to do..
plz help..
thanks...
|
|
|
|
|
Mohamad Kaifi wrote: i have to add a row run time in a table on click of a Add button..how to do..
plz help..
In which table? is it HtmlTable or Server Control Table or Database Table?
Have you implemented some code? If yes then post it.
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi all,
Can any one plz suggest me how i can delete my temporary internet files
within my Asp.net page. I am using C# as the code behind lang.
Indeed, i have flash inserted on my .net page, which in turn gets its
values from the xml file which gets generated at the run time according
to the selection of the user in a DropDownList. I want to delete the
flash from the "temporary internet files " folder so that on each
combobox selection, the user must get the new version of the flash.
I am using the following code.
HttpContext.Current.Response.Cache.SetCacheability (HttpCacheability.None)
It is not working, Please suggest where i can use exactly in c#, the above code.
I would be grateful if some one could suggest a workaround!!
Thanks and Regards
Sreetak
|
|
|
|
|
Sreetak wrote: Can any one plz suggest me how i can delete my temporary internet files
within my Asp.net page. I am using C# as the code behind lang.
That would delete the temporary files from the server, which is totally useless in your case.
Sreetak wrote: Indeed, i have flash inserted on my .net page, which in turn gets its
values from the xml file which gets generated at the run time according
to the selection of the user in a DropDownList. I want to delete the
flash from the "temporary internet files " folder so that on each
combobox selection, the user must get the new version of the flash.
Add the current time to the url of the flash file to keep it unique. That way the browser can't use the file in the cache.
Sreetak wrote: I am using the following code.
HttpContext.Current.Response.Cache.SetCacheability (HttpCacheability.None)
It is not working
I'm sure that it works just fine, but again it's useless in your case. It keeps the page itself from being cached, not the files that the code on the page loads.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hello
I want to export the value of my text boxes and combo boxes and other to an prepared excel shee
Thanks in advance for your help
Assaf
|
|
|
|
|
You Can export the value in excel Sheet:
You are required to keep textboxes and Combo boxes value in any container like dataset or array List .....and assign these source to GridView.
For example:
string s = "select * from person";
DataSet ds = GetDataSet(s);
GridView1.DataSource = ds;
GridView1.DataBind();
Response.ContentType = "application/ms-excel";
Response.AddHeader("Content-Disposition", "inline;filename=ExcelRPT.xls");
Good Luck !
|
|
|
|
|
hai friends
the following are problems/doubts in asp.net
1)in web.config i given session timeout=20
then after 20 min. session will expired
is it correct
if so, how can we know programatically the session is expired
depending this i will redirect the user to a new page
2)i m doing on line booking site for a client
he given a image which contains 900 boxes with numbering
if the user books 1 box then the box with corresponding number 1 will turn into red color
my client wants to place "buttons" at the respective boxes at designing time and at run time it should turn into red
now my main doubt is...
if we place 900 buttons does the page performance will be reduced...
is there any alternative for this ...
plz help me
thanks in advance
vijay
|
|
|
|
|
vijaylumar wrote: 1)in web.config i given session timeout=20
then after 20 min. session will expired
is it correct
if so, how can we know programatically the session is expired
depending this i will redirect the user to a new page
For your first question,
You need to have a Session variable when the Session is started like Session("IsUserLoggedIn") and set a value. When the Session expired, Session("IsUserLoggedIn") will be Nothing. Now you can say the session expired.
vijaylumar wrote: 2)i m doing on line booking site for a client
he given a image which contains 900 boxes with numbering
if the user books 1 box then the box with corresponding number 1 will turn into red color
my client wants to place "buttons" at the respective boxes at designing time and at run time it should turn into red
now my main doubt is...
if we place 900 buttons does the page performance will be reduced...
The performance depends on the what the button do when they are click (both on client and server-side). Placing that much controls will look odd. May be you can try with tables and tds.
|
|
|
|
|
hi venkatesh
thanks a lot ....
its very help full ...
but i didnt get it ...
here is the problem ..
while at runtime ...
it is not showing session as expired
bcoz on session end event i written session("IsUserLogIn")="false"
and i checked for every page in page load
but it doen't happened
then i started to find where is mistake by degubging step by step
then it run well , i got it
but again i removed all break points and i runed the site then it is not
giving the result
now what to do...
any way thanks for giving me a way or solution for this .....
thanks a lot...
actually in web.config i written time out ="1"
the time out is sliding type , is the reason y i am not redirecting to sessionexpired.aspx page
if so...
plz reply me....
thanks in advance
vijay
|
|
|
|
|
Are you using "Global.asax" file to handle the Session_End event?
I did the following in my appplication and its working fine for me.
In web.config,
<sessionstate timeout="1" />
In Login Page's button click,
<code>Session("LoggedIn") = True
Response.Redirect("Default.aspx")</code>
In the Default Page's Page Load event,
If Not Session("LoggedIn") Then
Response.Write("Session Expired")
Else
Response.Write("Session is active.")
End If
I am not using any Global.asax file.
Hope this would help you. If you still face the problem, email me the sample. I will look into it.
|
|
|
|
|
In the datalist , i have a label control in the datalist , at runtime , it gets bind with the database table . The label width is fixed and the height changes itself , as per its text , Now the problem is when i view the website in the internet explorer , it works fine , but when i view the site in opera or in the Mizilla Firefox , its second record gets overwrite with the first record , reason is , the text of first record is more the the first one.The datalist is iterating the records in the vertical direction.
How should i overcome this problem ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Sir if u have Mizilla Firefox please tell me the url to download and if u are talking about mozilla firefox
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Check the Height Property. If the content of the control is bigger then the Height of that control then Internet Explorer will adjust the Height accordingly. but the FireFox and Opera are more Standard base Browser, so they will stricktly follows the CSS Specification, and they will not increase the Height of the control, even if the content overlaps. so either you just leave the Height Property Blank or Increase it so that the content will not overlap.
|
|
|
|
|
Can somebody explain , how the request from the internet explorer(Client) goes to server and how the server revert to the client.I mean what is the backward working ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Its all done by HTTP request and response I suspect....
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Can u sort out this problem[^]
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
No, otherwise I would have responded to your original post. Sorry.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
Hi all,
If i have a number formatted like this 15,000 using a regex or so and i need to read it in javascript using parsefloat iam getting the result of 15
maybe because it is considering the "," as decimal point. is there a way i can read 15,000 as integer or decimal of 15000 so i can get the exact results in my javascript.
thanks
|
|
|
|
|
i was tryig to download the file through the datalist link button.The gridview is in the update panel.
on cliking the link button it showed the followig error
"Sys.Webforms.PageRequestParserErrorException: The message received from the server could not be parsed. Errors parsing near
there were few square boxes after this.
I am writing the following code.
string filename = f.Name;<br />
Response.ContentType = "application/octet-stream";<br />
Response.AddHeader("content-disposition", "attachment; filename = " + str);<br />
Response.BinaryWrite(b);<br />
Response.End();
my linkbutton is in datalist and datalist is in update panel.
How should i find the link button id now?
I am writing the followinf inline code , the id is of linkbutton ut it gives runtime error , says this id does not exist
<triggers><br />
<Triggers><br />
<asp:PostBackTrigger ControlID="linkbutton1"></asp:PostBackTrigger><br />
</Triggers></triggers>
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
If your controls are in Content Place Holder / Panel / Place Holder / Update Panel. Then you cannot directly access them. you have to use the FindControl Method[^]
Make sure that you are following the correct sequence.
i.e.
x = Page.FindControl("your update panel")
y = x.FindControl("your control in update panel");
or you can stack trace and use the direct pre defined name
i.e. ctl001ContentPlaceHolder.<your control>
Hope this will help...
|
|
|
|
|
I am using Acribat reader ActiveX Control in my C# winform.
in run time I am loading xxx.pdf file.
after that i have button Delete
when I click Delete button I nead to delete(Unload) the file from that control from the form
From yesterday onwords i am traying
I did not get solution
plz help me
Thanks
|
|
|
|
|
I am binding same table data into 2 dropdownlists.If i select one data from first dropdownlist then the selected data willnot be seen in the second dropdownlist.How is it possible in c# application.
|
|
|
|
|
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList2.SelectedItem.Text = DropDownList1.SelectedItem.Text;
}
enable dropdownlist1 Autopostback=true
Sathya
|
|
|
|
|
i want to remove the selected data from second dropdownlist if i select from the first dropdownlist.Is it possible using javascript.
|
|
|
|