|
In vb, what would be the correct syntax to reference a textbox from a passed querystring? The textbox I need to look at is derrived from a querystring parameter, e.g. id=txtAbra or could be id=txtMagic, which is passed as say request("id") string. So, I then need to reference the textbox.value on the page with that querystring value. I don't need the value of the querystring as a value, but as the id of the textbox on the page. If the request("id") = "txtMagic", how do I reference that txtBox value on the page when I come to it?
Dim myStr As String = Request("id").toString
Dim myVar as string = string.empty
myVar=CType(myStr,TextBox).Text
Thanks so much, Janet
|
|
|
|
|
|
J4amieC,
Thanks so much - a little tweaking and just what I needed. I appreciate your time.
Janet
|
|
|
|
|
Having successfully implemented custom BLL's and DAL's that support select, update, insert, delete and paging for use with the ObjectDataSource Component, I have identified the following issue.
Example SQL select returns 87 records, the grid view displays 8 pages * 10 records which is providing paging and select only for use with a details view.
When selecting the last page (8) on the grid view AND ONLY when selecting a record within that page, the paging index area of the grid is no longer visible preventing further page navigation as if grid view paging has not been specified.
I may have overlooking a specific setting but I am not sure, any assistance welcome.
Regards,
dotman1
|
|
|
|
|
Can any body help me ?
I need to make a Back button , but the back button shuldt go back to that page where user com from.
I have a page called Index and you klick next and now you are in Index1.aspx.
In Index1.aspx need i to make a button who response to that page where user com from in this case Index.aspx.
I know i can do with response.Redierect(Index.aspx) but i want that automatisk.
I hope you have time to help me.
Sorry my english.
|
|
|
|
|
Hello,
With the next call you go back to the previous url.
Response.Redirect(Request.UrlReferrer);
Greetings,
Marco
|
|
|
|
|
Response.Redirect(Request.UrlReferrer);
Sorry but when i do this is nothing happin ?
thank you very much
|
|
|
|
|
in the click for the button...
|
|
|
|
|
yes
her is som code hope u can help me
protected void btnBak_Click(object sender, EventArgs e)
{
Response.Redirect(Request.UrlReferrer);
I try this to
Response.Redirect(Request.UrlReferrer.OriginalString);
And this
Response.Redirect(Request.UrlReferrer.OriginalString);
}
but they don't work
|
|
|
|
|
The most obvious thing to do, is to do this entirely on the client side using javascript.
http://www.google.com.au/search?sourceid=navclient&ie=UTF-8&rlz=1T4ADBS_enAU225AU226&q=javascript+page+back[^]
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How can we convert rdf xml file as dataset in asp.net
thnx in advance
|
|
|
|
|
1. Convert your RDF file to XSD, e.g.: xsd <xmlinputfile>
This will create your .xsd
2. Convert the .xsd to dataset, e.g.: xsd /dataset <xsdinputfile>
This will create your dataset file (C#)
If you prefer to load your dataset from your code, that should work as well.
God bless,
Ernest Laurentin
|
|
|
|
|
I suggest to add an expander to the messages to show the initial post only and enable the reader to expand to see the whole discussion
And the expantion of one title collapses any other expanded one.
This will enable more titles to appear in the page
Cause I think nobody gives attention to pages other than the 1st page.
Mohamed Gouda
Egypt
|
|
|
|
|
You can actually post in 'Suggestions/Bug Reports' forum, which is more frequently monitored by CP Team to gather and enqueue the suggestions towards the next versions and to address the issues that have been reported thereto.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
that is a good suggestion though
|
|
|
|
|
I suggest if you have a suggestion, to use the right forum to post it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Perhaps some CP Admin should consider moving this thread to 'Suggestions/Bug Reports' forum.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Sorry, I never noticed that there is a forum for suggestions
Thanks for well planned site
Mohamed Gouda
Egypt
|
|
|
|
|
Hi,
How to freeze multiple rows and columns in a datagrid. It should be like an excel sheet, if you scroll horizontally, columns should be frozen and if u scroll vertically, rows should be frozen.
This grid contains paging and some external filters to display the data and will be created dynamically.
Please help.
|
|
|
|
|
check this out
http://www.codeproject.com/KB/webforms/FreezePaneDatagrid.aspx
|
|
|
|
|
i hope the given solution will not work in firefox and i cannot freeze more than one rows.
Any other way please..
|
|
|
|
|
yeah google, I just typed freeze columns in datagrid into www.google.com and that article was the first one, maybe you should try searching first
|
|
|
|
|
Hi Everyone,
i need to validate a textbox which allow user to enter only 2 numbers (user must enter 2 number),and its provide user enter maximum 2 numbers,i try to use Regular expression for this bur i coudn't do this,please help me to do this.
Thanks.
|
|
|
|
|
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ErrorMessage="Please enter a numerical value" ControlToValidate="tbtextbox" ValidationExpression="([0-9])" runat="server"></asp:RegularExpressionValidator>
then set the texbox property maxlength to 2 e.g
<asp:textbox maxlength="2"
hope this helps
|
|
|
|
|
Hi friend,
thank your prompt, but when i enter like example 14 its show error "enter the numeric value"
user shoul enter 01-99 that's my requirement,and also user must enter 2 values.
|
|
|
|