|
Thanks Bhati
I did the same but in code behind following errors comes:
CS0103: The name 'DDLMaterialCode2' does not exist in the current context
I wrote this code:
protected virtual void DDLMaterialCode2SelectedIndexChanged()<br />
{<br />
Response.Write(DDLMaterialCode2.Text);<br />
Response.End();<br />
}
Should I pass these parameters (object sender, EventArgs e) to this function.
and Is it Correct OnSelectedIndexChanged="DDLMaterialCode2SelectedIndexChanged"
Hope to get fast reply
Thanks
Bajrang
Using .net 2.0 (VS2005)
|
|
|
|
|
Hi,
Yes you should pass parameters (object sender, EventArgs e) to the function and also you should set "AutoPostBack" property of dropdown list to "true".
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
yes do have to pass the parameters, all event handlers need two parameters, object and event argumaents, in you case you have to send EventArgs as arguments. The html syntax is right.
If DDLMaterialCode2 is a drop down list then the following line is wrong
Response.Write(DDLMaterialCode2.Text);
instead of the above you need
Response.Write(DDLMaterialCode2.SelectedValue or SelectedText);
-----
|
|
|
|
|
i have this code:
pdfdocument[] pdf = new pdfdocument[2000];
reportDocument[] rpt = new reportDocument[2000];
for(int i=0;i<2000;i++)
{
rpt[i] = loadReport("anycrystalreport.rpt");
pdf[i] = convertcrystalreporttopdf(rpt[i]);
}
showpreviewpdf(merge(pdf));
this codes make the error:
the maximum report processing jobs limit configured by your system administrator has been reached.
please help me.
if my codes isn't good method for this action please give me any ideas for show multiple reports in one pdf file.
i know that how to marge 2000 pdf file to one pdf file.
We Can Do Anything, If We Want It
|
|
|
|
|
hi friends
Is this possible to refresh the data in datagrid automatically?
regards
saravanan
|
|
|
|
|
just re-bind datagrid...
<< >>
|
|
|
|
|
Hello Friends,
I am getting an error on the pages i am trying to access database.
PLease have a look to the error and help me our with all the possibilities.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.<br />
Deepak Surana
|
|
|
|
|
I'm not sure I can help...but can you debug your app to see which line of code causes this exception?
<< >>
|
|
|
|
|
There is no error coming up on my local machine, but only when i upload it to a server.
Deepak Surana
|
|
|
|
|
Hi,
I think you need to register 'System.Security.dll' in your server.
Regards,
Sandeep Kumar.V
-- modified at 1:42 Friday 4th May, 2007
|
|
|
|
|
HI all,
Here am using 2 user Controls.One Usercontrol(Button.ascx) is having Button and another Usercontrol(Grid.ascx) is having Datagrid.
Am placing these 2 controls on different page(New.aspx).
Here i want to fill the datagrid in the Bitton Click event.
I used delegates and Enabled Buton click event and Datagrid Bind event in the New.aspx page.Here the click event is enabled but Datagrid event is not firing and its not entering into the event.
Pls guide me How to call an event within the event which r in difft UCs.
Thanks in Advance
Have a Nice Day Dudes
|
|
|
|
|
I am trying send a hyperlink in mail. It worked correctly for gmail, hotmail etc. But it is not showing the link in some email providers. This is the code what i am using for link.
str += "<strong><a href='http://" + httphost + "/accounts/Vendor/QuoteResponse.aspx?req=" + qs.ToString() + "'>";
str += "Click Here To Quote</strong></a>";
Where I am going wrong ?
printf("Navaneeth!!")
www.w3hearts.com
|
|
|
|
|
What the user receives at email client? IMO, email client setting should enable HTML view...
<< >>
|
|
|
|
|
set target attribute to _blank such as:
<a href="http://www.mysite.com" target="_blank">home</a>
We Can Do Anything, If We Want It
|
|
|
|
|
How do i prevent users of my web application from bypassing my User login to other pages in my asp.net web site? i.e I have pages something like
login.aspx
purchase.aspx
stock.aspx
sales.aspx
if any user enter my site thru
http:\\xxx.xxx.xx.xx\sales.aspx
the user should be redirected to login.aspx
t.aransiola
|
|
|
|
|
Use session variables to find out if the user has logged on, if not redirect him to login page.
|
|
|
|
|
Use session variable to check if user already logged in or not...
<< >>
|
|
|
|
|
Hiii
In longin.aspx, after validating the user if the user is a valid user then store his name in a session variable.....
In other pages(like purchase.aspx, stock.aspx, sales.aspx) check whether session variable contains value or not, if session variable is null then redirect user to login.aspx.
Regards,
Sandeep Kumar.V
|
|
|
|
|
Use FormsAuthentcation.
It is more reliable.
Regards,
Arun Kumar.A
|
|
|
|
|
Wondered if anyone would point that out - have a 5 hehe
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
Lol me too... 4 replies and nothing good.
|
|
|
|
|
If you do decide to use session instead of forms auth, keep in mind that sessions die after 20 minutes by default, and that in the meantime, you should clear the session if the user navs away from your site or logs out.
|
|
|
|
|
Hi!
I am facing a problem while freezing the rows of datagrid.
In my grid I have showheader="false". because i have to create header through DHTML.
So,I have inserted rows using DHTML, because row is to be distributed in sub rows.
My problem is while freezing rows it lock scrolling for item/data rows but not for row added on top as Header.
Puneet Singhal
|
|
|
|
|
I have an asp.net form designed for users to display their userid and password, and to change the password.
On display, teh Password box does not display the password value.
how can i do this
t.aransiola
|
|
|
|
|
aransiola wrote: On display, teh Password box does not display the password value.
I think it won't
|
|
|
|