|
Have you tried re-directing visitor to the page itself using either "Respone.Redirect" or an HTML (or JavaScript) redirect? That's one way to force the viewer to refresh.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
I've uploaded my asp.net website.and also uploaded it's sqlserver database.(seemingly it was uploaded completely)
but when I open the site it doesn't work(it doesn't make any error or exception and open the webpage but dosn't display the the gridview)
my question is
1:what is the problem in your opinion?
2:how I can be sure that I uploaded the db correctly?
(plzzzz help it is very necessary)
|
|
|
|
|
Don't repost
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi i have written the code below, its job is to bring up a popup when a button is clicked,
the popup doesnt work and i doubt it is taking across "WorkSchedule_ID" I tried this but it didnt work, I reckon the offending line is "strPrimaryKey =e.Item.DataBind("WorkSchedule_ID").ToString;". WorkSchedule_ID is coming from the database and each recored has its on unique ID, how can i pass it through to the page?
protected void btnModify_Click(Object sender, DataGridCommandEventArgs e)
{
if (e.CommandName == "Submit")
{
string strPrimaryKey = (string)e.CommandArgument;
strPrimaryKey =e.Item.DataBind("WorkSchedule_ID").ToString;
//int intPrimaryKey = Convert.ToInt32(strPrimaryKey);
strEvent = "<script language='javascript'>\r\n";
strEvent = strEvent + "popup('sow_notes.aspx?WorkSchedule_ID=" + strPrimaryKey;
strEvent = strEvent + "&survey_id=" + Request.QueryString["survey_id"].ToString();
strEvent = strEvent + "&sow_type_id=" + Request.QueryString["sow_type_id"].ToString();
strEvent = strEvent + "&surveytype_id=" + Request.QueryString["surveytype_id"].ToString();
strEvent = strEvent + "&property_id=" + Request.QueryString["property_id"].ToString() + "');\r\n";
strEvent = strEvent + "</script>";ViewState["sEvent"] = strEvent;
}
}
|
|
|
|
|
hi,
i had a gridview to insert records into database i created detailsview here i had to update textbox when DropDownList's selected item is changed.i,e if i click an item in dropdownlist that item has to be displayed in textbox of detailsview
waiting for ur replies
|
|
|
|
|
Hi.how are you?
I have created a Form which has textbox,combobox,radio button and ...
the customer can view it and fill it.then by clicking the "send"button it should be sent to my email address.
I should see all the data of the application form,or the origina html application form in my inbox so I can reply the person...
How can I do it ? I dont know how to pass the data in the form to my inbox via email ...
please help me. i need the data and filled items in the application in my inbox email.
thanks alot
usinh asp.net1.1 & C#
|
|
|
|
|
i used session variable and also i maintain state name with the help of session.what is the problem means one user means no problem but many user login and maintain different state that time my state value also change .i want to maintain my state name in my browser window.how to i maintain session
Mohan t working for N.I.C
|
|
|
|
|
Session is per session, ie per user. Can you use application state?
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
thanX for ur reply
iam not using application state plz tell me any information abt that
Mohan t working for N.I.C
|
|
|
|
|
hi all
i want to validate the email id field in my application.can anyone tell me how to check(in coding)the domain name which the user has specified is valid domain name and also the email id is valid.
pintoo
|
|
|
|
|
hi, there?
Generally, Regular Expressions for email are used to validate the syntax. But if you vant to validate one active domain, you can try to connect/ping with the domain entered. You can do it easily at server side code, but it may take a little time to respond.
pls refer to System.Diagnostic library for relevant methods.
Any systematic work reflects its significance for a long time. So let's discuss the best...
|
|
|
|
|
sometimes I recieve this error but I don't know why.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Access is denied: 'Hakhamanesh'.
Source Error:
Line 198: <add assembly="*" />
|
|
|
|
|
You can change "true" and "false" all day long, and it won't accomplish
anything. The error message indicates that you are using a config file in a
subfolder of your web app, and that the config file (web.config) has
sections in it which are "MachineOnly" sections. They should not be there.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
my problem is that when i convert using rewriting the url like "www.mysite.com/services.aspx?pageid=2" into "www.mysite.com/services/2.aspx"
now before i get the query string value page id and then get data from database on behalf of querystring now i doesnt get qury string so i how get data from database
please help me
modified on Wednesday, December 05, 2007 3:32:40 AM
|
|
|
|
|
Hi All
I want to make a regular expression which should be start with * and there can only be digits with *.
for example - I want *53895.
Asterik (*) should be only one time in this character that is only in starting.
User can enter either like *53895 or 53895.
if he use * then he can enter only one * , in the starting of character.
I try to make this regular expression ^[*1-9'.\d|1-9'.\d]{1,6}$. But it allows (*) more than one time.
plz help me.
|
|
|
|
|
Sunil Kumar Dhiman wrote: ^[*1-9'.\d|1-9'.\d]{1,6}$.
* is a regular expression keyword. Put a \ before that to escape it
^[\*1-9'.\d|1-9'.\d]{1,6}$.
|
|
|
|
|
It also working same. taking more than one (*).
|
|
|
|
|
Hi,
I am unable to get the session variable on popup windows in asp.net. When I open the pop up window s on click on button, session variable is null on page load event of popup windows. How can I maintain session between multiple popup windows?
Working Environment:-
• Windows : - 2003 Server
• IIS 6.0
• FRamwork2.0
• IE 7.0
Any help is appreciated.
rajesh
|
|
|
|
|
Where and how are you creating the session, and how are you reading it back?
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
Thanks for reply
i create the session like
Session["UserId"] = "admin"
access the session on popup windows
string str = convert.ToString(Session["UserId"])
rajesh
|
|
|
|
|
In the project , i have a folder named form there exists a login page. after the session expires , in the session end function(global asax file)
i am writing
Response.Redirect("Login.aspx");
login.aspx exist in form folder
after the execution of session end it is going in the application error funtion and it is not even navigating me to loginn.aspx page.
y it is happening
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
modified on Wednesday, December 05, 2007 2:29:25 AM
|
|
|
|
|
Writing inside session_end event is not a good choice. Write in the page where you are ending the session.
|
|
|
|
|
how should i use the
Response.Redirect("Login.aspx");in session end fucntion
it is not working , not navigating me to login.aspx page
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
If your page is in form directory, the use Response.Redirect("form/login.asx")
|
|
|
|
|
i used the same procedure as u said.should it go into the application error after the execution of session end function .
the path string is correct , there is not problem in it.
Response.Redirect("Forms/Login.aspx");
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|