|
Hi
Any one can tell me how we can implement "disscussion board" with asp.net
thanks
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
|
|
|
|
|
Hi;
I am trying to adapt some code from an article "Editable Nested GridView" by Satya Kanithi, on this site.
In my code I added a third grid, and in it I want to be able to page.
However when I click on a page number my gridview3_PageIndexChanging() event gives me this error
message "No default member found for type Gridview".
What have I failed to do ?
Thanks for any ideas
|
|
|
|
|
Hi,
I am stuck in a prob... I am editing the DataGrid where I have populated the data from DB. Now after editing the particular row I need to update it. I am able to edit but don’t know how to update it as ‘e’(GridViewUpdateEventArgs) is not giving me values...(protected void UpdatingRecord(object sender, GridViewUpdateEventArgs e))
I am copy pasting edit function (which is fine) and Update function which is not working.
protected void EditRecord(object sender, GridViewEditEventArgs e)
{
BindData(); // here I am calling function which opens the DB connection n all...
GridView1.EditIndex = e.NewEditIndex;
GridView1.DataBind();
}
Function not working or donno how to do... where ‘e’ is not giving values.. string 'str' is ‘null’ always...
protected void UpdatingRecord(object sender, GridViewUpdateEventArgs e)
{
//GridView1.UpdateRow(e.RowIndex, true); //this stmt goes into recursion...
GridViewRow row = GridView1.Rows[e.RowIndex];
string str = GridView1.Rows[e.RowIndex].Cells[1].Text; // for the time being hardcoded cell
}
I am getting 'str' as 'null'. Just tell me how to commit the row after editing it to update row coz just now while debugging I got to know that only the row which I am editing is returning ‘null’ but in watch window I changed the rowindex manually to diff row index to see if I am getting values and ‘e’ is showing all values for every column!
regards,
Supriya Tonape
|
|
|
|
|
Hi all,
I have this problem with my visual studio :
When i try execute my code i find :-------
"Unable to connect to visual studio's local web server"--
I have done a new installation howeve it didnot solve the problem.
Please advice
|
|
|
|
|
What Version of Visual Studio you are having?
Did you checked whether IIS is installed in your machine? If it is installed, check whether you have .NET version is properly configured with the IIS.
modified on Friday, February 01, 2008 6:50:41 AM
|
|
|
|
|
|
Here is what I’m trying to achieve:
I want to write a class that I can add gridview functions like Sorting and other common functions. Then have aspx pages that contain gridviews inherit from this class so I won’t have to write the same functions on every aspx page.
Every time I need to add functionality to a gridview, I have to add it to all the gridviews. I want to be able to add it to only one class.
I tried a usercontrol with a gridview but it didn’t work for me.
Thank you,
Martin
|
|
|
|
|
I'm using forms authentication on my site, and I want the login to be persistent (saved in a cookie?) for a number of days so that the user doesn't have to login each time he visits. Here's the code I use on my login page:
if (membership.ValidateUser(this.username.Text, this.password.Text))
{
FormsAuthentication.Initialize();
DateTime dtNow = DateTime.Now;
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, this.username.Text, dtNow, dtNow.AddMinutes(30), true, "user", FormsAuthentication.FormsCookiePath);
string encryptedTicket = FormsAuthentication.Encrypt(ticket);
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket));
Response.Redirect(FormsAuthentication.GetRedirectUrl(this.username.Text, true));
}
What am I doing wrong (or what am I missing)?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Hi All,
Can i have c sharp code for a datagrid that updates itself every to 10 seconds on a web page?
So that data can be dispalyed as it get updated from a table.
Thank you very much
Regards
|
|
|
|
|
Can be done very simply using JS. Just perform the DataGrid's data binding in Page_Load and add this to the page within a script tag:
setInterval("document.forms[0].submit();", 10000);
Clean code is the key to happiness.
|
|
|
|
|
Thank you very much for your response.
I am not that good in JS.Do you think i should get the Java script code in Test.aspx ?where exactly? is it in the page _load event?
Please advice.
Thank you
regards
|
|
|
|
|
Hi,
Thank for your response.Let me expain it a bit further
Say i have a server process which listens for some changes in database.
When a change occurs i want to refresh my page in browser by notyfinig it.
I do not want to refresh my page i.e. every 5 seconds, i just want to refresh it ONLY on server change just like desktop applications do.
The problem is that refreshing evry n seconds has to much impact on my web server. The refresh action should be taken only when something really happens that makes sense
Is it possible ?
|
|
|
|
|
hi guys.. i just opened a new asp webform and wrote "hello world" in the wysiwyg editor of visual studios 2005 and ran it, and it worked fine in my system. but when i uploaded it to my website it is showing an error page asking me to put a customerror tag with mode set to "off" and i did exactly as it said <customerrors mode="Off"> but still it is showing the exact same error page... what is the problem ... my web hoster do has an asp server running..
|
|
|
|
|
This error is masking the true error you are recieving as the Web.config file of your application has the customErrors tag mode attribute not set to "off". Open the Web.config file of your application and update the customErrors tag as follows:
<customErrors mode="Off" />
Clean code is the key to happiness.
|
|
|
|
|
hii newc1 thanx for replying. but i figured the source of the problem..
its not with the code.. its the prob with the webhosters.. the asp server which was running was 1.0 where as mine required 2.0 so iv asked them to upgrade it.. hopefully things should get normal once it is upgraded..
|
|
|
|
|
iam having a button where i want to click two javascript functions at a time how this is possible
|
|
|
|
|
Simplest way is to call the first method in onclientclick and then call the second method inside first method.
Arun J
|
|
|
|
|
No, the simplest method is to call both in the click event handler.
function OnClick()
{
Method1();
Method2();
}
only two letters away from being an asset
|
|
|
|
|
separate the two calls with a semicolon.
OnClientClick="function1();function2();"
|
|
|
|
|
Calling of multiple functions of javascript on client click is very simple.
onclick='javascript:function1();javascript:function2();'
Hope this will help you.
Thanks & Regards
Dilip Kumar Vishwakarma
|
|
|
|
|
and you're telling me this because....?
|
|
|
|
|
How to wrap the words in a GridView
Regards,
LEE
|
|
|
|
|
Take Edit columns from the smart tag of grid.And select the bound field u want to wrap.And take Itemstyle from the Field properties.Inside that a property is there.ie,wrap,set that value.Headerstyle also have this property.
Arun J
|
|
|
|
|
Hi,
I am placing custom error code in web.config.I just want to redirect it to some page(different Page that will show only that your session have been expired.)
when session expires for the application.Code is something like
<customerrors mode="On" defaultredirect="error.htm">
<error statuscode="500" redirect="CustomerError500.aspx ">
(I am using ASP.NET 1.1)
Can anyone plz let me know the Status code for the session expired???
Thanks in Advance
adil kazmi
|
|
|
|