The Wayback Machine - https://web.archive.org/web/20090124012009/http://www.codeproject.com:80/script/Forums/View.aspx?fid=12076
Click here to Skip to main content
5,829,295 members and growing! (22,518 online)
Announcements
* Bold indicates new messages since 15:20 23 Jan '09




BullFrog Power
Advanced Search
Sitemap

ASP.NET


Home > Forums > ASP.NET

 Msgs 1 to 25 of 7,209 (Total in Forum: 138,378) (Refresh)FirstPrevNext
AdminHow to get an answer to your questionadminChris Maunder17:29 10 Nov '05  
For those new to message boards please try to follow a few simple rules when posting your question.
  1. Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
  2. Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
  3. Keep the subject line brief, but descriptive. eg "File Serialization problem"
  4. Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
  5. If you are posting source code with your question, place it inside <pre></pre> tags, or click the "Ignore HTML tags in this message" check box.
  6. Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
  7. Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
  8. Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
  9. If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
  10. No advertising or soliciting.
  11. We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.

cheers,
Chris Maunder
CodeProject.com : C++ MVP

QuestionHow to set a session variable to selected row valuemembercubangt2hrs 25mins ago 
I have a gridview that i need to grab the record id from when the end user clicks on the link to take them to the next page.

Is there anyone that can help me accomplish this?

Here is my entire code behind if that helps.. its getting frustrating since my demo is today at 4pm and i cant get this working.. thanks for any help anyone can offer..
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class GR_Intranet_Apps_Compliance_app_Default3 : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)
{

GridView1.Visible = false;
}

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{

if (e.Row.RowType == DataControlRowType.DataRow)
{

HyperLink hl = e.Row.FindControl("HyperLink1") as HyperLink;
DataRowView drv = e.Row.DataItem as DataRowView;

if (drv["formtype"].ToString() == "VC")
{

hl.NavigateUrl = "vc_form.aspx";
}

else if (drv["formtype"].ToString() == "FS")
{

hl.NavigateUrl = "edits/fs_form_edit.aspx";
}

else

hl.NavigateUrl = "dg_form.aspx";
}

Session["sessid"] = e.Row.FindControl("record");
}

protected void GridView1_SelectedIndexChanged(object sender, GridViewSelectEventArgs e)
{

Session["sessid"] = GridView1.SelectedRow.Cells[0].Text;

}

protected void Button1_Click(object sender, EventArgs e)
{

Session["sessponum"] = (ponum.Text);
Session["sessuser"] = Request.ServerVariables["AUTH_USER"];

GridView1.Visible = true;



}

}
AnswerRe: How to set a session variable to selected row valuesupporterMark Nischalke7mins ago 
And what is happening? Do you get any exceptions? You're frustrated and time is short but you have to give a little more you expect any help.


only two letters away from being an asset

Questionxsd serialization questionmemberMember 39190493hrs 26mins ago 
I am creating classes from an xsd file using xsd.exe.

For some reason, an additional property is being generated for all elements and attributes in the generated object model.

For example, I have a "General" element (class property) and when I set a QuickWatch in my debugger, an additional property is displayed at the same level named "generalField." "General" has a child element defined through a complex type sequence named "CreatedBy." In the QuickWatch, an additional property named "createdByField" is displayed.

Is there a way to configure my xsd or xsd.exe command so these additional "field" properties are not displayed?
QuestionHow to redirect to the default.aspx page ?memberDavid Mujica3hrs 37mins ago 
This is probably a very simple question, but I'm working on my first ASP.NET application. I want to use the response.redirect function to send my application back to the start of the website. The main page of the site is default.aspx.
I tried, Response.Redirect("/"), but that put me too far back and did not include my virtual path.

The proper path should be something like this: http://myserver/vpath/default.aspx

What is the proper way of redirecting back to the home page ?

Thanks.
AnswerRe: How to redirect to the default.aspx page ?memberTalal Sultan3hrs 15mins ago 
Hi

Did you try Response.Redirect("~/")? or simply Response.Redirect("~/default.aspx")?


Talal

-- If this is a post that has been helpful to you, please vote for it. Thank you!

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

AnswerRe: How to redirect to the default.aspx page ?memberRutvik Dave3hrs 3mins ago 
Just use

Response.Redirect("Default.aspx");

And when you want to refer to sub folder then either use "./FolderName/FileName" or "~/FolderName/FileName" (like the previous poster suggested)
Questionhw to create color pallette or change color of text in creating template ?memberteju gadekar7hrs 6mins ago 
hi.. can anybody there guide or help me to create a feature to change color of text using asp .net
AnswerRe: hw to create color pallette or change color of text in creating template ?supporterMark Nischalke6hrs 50mins ago 
You'll have to be a little more specific in your needs. You can use themes, CSS or other techniques.


only two letters away from being an asset

QuestionNeed help obtaing info from an arraymemberMember 37901117hrs 19mins ago 
My knowledge of Asp.net still leaves a lot to be desired and I am having real trouble getting at some data stored in an array that I want to use to build an xml file dynamically.

I have an instance of a CalendarEvents class named mothItems inside of which is an arrayList named eventList. Once this arrayList is populated I am trying to get at the info in there to use it for the xml file. These are some of the ways I imagined it shouild be done for the title for example:

monthitems.eventList[0].title
mothitems.eventList.[0].title
monthitems.eventList[0].title.value

I tried so many possibilities that I can't remember them all.

Can someone please tell me where I am going wrong with this?
AnswerRe: Need help obtaing info from an arraysupporterMark Nischalke6hrs 52mins ago 
I would suggest using a generic collection rather than an ArrayList. ArrayList stores objects, to access the contained object it needs to be cast back to the original type. The generic collection doesn't need this and guarantees type safety.


only two letters away from being an asset

QuestionHow to display a image from database in a dridview?memberMeax9hrs 2mins ago 
here is my database table:

ID int
PersonImage image
PersonImageType nvarchar(50).

at pageload i want to all the images from this table and show in a gridview or datalist.

i have tried so many tutorials but most of them in C#.
AnswerRe: How to display a image from database in a dridview?mvpAbhijit Jana8hrs 50mins ago 
I think this article [Displaying Image in Gridview from Database[^] ] will help

cheers,
Abhijit
CodeProject MVP
My Recent Article : Exploring Session in ASP.Net

Questioncss for freezing header in gridviewmemberNidhiKanu11hrs 2mins ago 
Hi,


            I am using gridview component and b'cas of lengthy data i need to freeze my grid header for its height.

N!dh! Smile
AnswerRe: css for freezing header in gridviewmvpAbhijit Jana10hrs 26mins ago 
You can Freeze.
This is you CSS Class
.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10;
}

and set GridView HeaderStyle as following
<headerstyle cssclass="HeaderFreez" />


cheers,
Abhijit
CodeProject MVP
My Recent Article : Exploring Session in ASP.Net

GeneralRe: css for freezing header in gridviewmemberToddHileHoffer9hrs 42mins ago 
I stand corrected. That's pretty sweet.


I didn't get any requirements for the signature


QuestionCustom event for custom server controlmemberAnuMaria12hrs 23mins ago 
Hi All,
I have a custom server control (Multi selection drop downlist). This control contains AspxEditButton control(which is like textbox with button), check box list control and panel.I have to display all selected values in AspxEditButton at control is leaving that panel. How can i create LostFocus event for panel Confused. Please anyone help me

Regards,

Anu

AnswerRe: Custom event for custom server controlmemberPaddy Boyd12hrs 5mins ago 
Client or server side event?
QuestionWhiyeBoardmemberMember 429834812hrs 40mins ago 
Hi, I am assigned a task to create a whiteboard in asp.net using c#
My problem is that in vs 2005 canvas is not available.
Is there any control or code which can be used as a canvas in vs 2005 as we can see that canvas is available in vs 2008 if we use silverlight 1 or 1+ version.
I have had googled for a number of site giving numerous solution using javascript and silverlight application.
Bu ti wanted to use the canvas like functionalit in asp.net 2005
I am really in great need of such code

Any help will really appreciated.

Thanks in advance.

abby

QuestionPlease Correct Regular expression.membermr_muskurahat13hrs 6mins ago 
(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d

regular expression i am using to check date for MM/dd/yyyy

now i want to accept M/dd/yyyy and MM/dd/yyyy format

please tell where to put what and this regular expression i am using in
ajax tab panel on M/dd/yyyy it gives error..

umerumerumer

AnswerRe: Please Correct Regular expression.memberToddHileHoffer11hrs 19mins ago 
If you need a date validator, use the following. It is so much easier than regex programming.

<asp:CompareValidator ID="TargetDateValidator" runat="server" Type="Date"   Operator="DataTypeCheck" Display="dynamic" ValidationGroup="Default" ErrorMessage="The target date is not valid format = "mm/dd/yyyy"   ControlToValidate="TargetDateTextBox"></asp:CompareValidator>

If you want to use regex try posting a question <a href="http://stackoverflow.com/questions/tagged/regex">http://stackoverflow.com/questions/tagged/regex</a>[<a href="http://stackoverflow.com/questions/tagged/regex" target="_blank" title="New Window">^</a>]

I'm awful at writing regex so I'm not even going to try and help you with that.
QuestionTo Hide The EmailIds from other Usersmemberdiv_gusain13hrs 54mins ago 
Hi all,
m creating a newsletter system in which I hv a dataset containing more than 10 EmailIds of subscriber.I want to send them mail at a single time,I can do this but i want to hide single user's EmailId from other users.In the mail in Place of To:Xyz@zyz.cc the user gets only his name not the list of other users.
I m not getting how to done this,plz help me to resolve this problem
AnswerRe: To Hide The EmailIds from other UsersmemberPaddy Boyd12hrs 3mins ago 
Add them to the BCC list rather than the TO list.
QuestionProble regarding modulpopup extendermemberais0714hrs 56mins ago 
Hi There,
I have 2 link button add country,add state.On click of these button I am opening a popup window.I am adding new country and state detail from this popup window.When I click on add button this popupwindow disappears I think because of postback.I to prevent this window from disappearing.If any body knows please help.

Thanks
QuestionRename dllmemberam.net16hrs 31mins ago 
Is any way by which, can rename the dll(vb.net), if we dont have project of that dll???

i like to play with programming.... Smile

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Last Updated 9 Aug 2007
Web19 | Advertise | Privacy
Copyright © CodeProject, 1999-2009
All Rights Reserved. Terms of Use