|
Hi All,
I have just passed a parameter to a URL through a javascript function so that i can get the value in the next page using C#, Iam not able to get the value in the second page, could any one please help me how to do it ?.
Please help me out .......
Thanks
chandu
chandu
|
|
|
|
|
Did you pass in query string ?
can post here you that piece of code ?
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
function pass_var(i_d)
{
alert(i_d);
window.open("home.aspx?" + "var_id=" + i_d);
return;
}
This is the javascript function which i have written in the first page.
chandu
|
|
|
|
|
try with this
window.open("home.aspx?var_id=" + i_d);
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks for the Reply its working fine [ ]
chandu
chandu
|
|
|
|
|
hi everybody,
i ve written code for image slideshow using slideshowextender in ajax..
now if the user selects a particular image,tat image should be displayed in a seperate image control....
how to give the image path to the new image control..
the paths for slideshow is stored in an array...
pls help me out...
-diwakar
|
|
|
|
|
|
microsoc wrote: is it realy only applicable for windows?
You can't capture the screenshot from web application unless you are using ActiveX control which runs only on IE-specific browser..
|
|
|
|
|
|
hey someone help me out with this,
been using the response.redirect method, i am trying to show the sessage, if it is a specified value. and show the custom message.
msgBox(""). it works fine in the development server. but when it migrate to testing server i got this message.
Error Message:
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
pls be advise where i have done wrong
Thanks in Advance
|
|
|
|
|
Your server is where your VB code runs. Unless you're testng the site on the server machine, this means your code is going to stop execution, on the server, and no-one will see the message box in order to close it.
I recommend reading up on the way that ASP.NET works, this is reasonably fundamental stuff.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Guys, I have already spent an hour and this thing really making me crazy all i want is to Move Folder A folder B. What's going inthese code please help out
string path = @"C:\Documents and Settings\pic\My Documents\What";<br />
string target = @"C:\Documents and Settings\pic\My Documents\What2";<br />
<br />
Directory.Move(path,target);
|
|
|
|
|
|
Any help would be appreciated. How do I pass a variable e.g name to a sql stored procedure with variable declared @name? What is needed after code below? Will SET @name = uname work? (where uname is my variable)
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:ClubSiteDB %>"
="" selectcommand="PagedAnnouncementList" selectcommandtype="StoredProcedure" onselected="SqlDataSource1_Selected">
Thanks
Steve
|
|
|
|
|
hi friend's
i want to allow my users to create subdomain automatically by entering a specific name and pressing a button.and then when users call his/her subdomain address,my program redirect him/her to specific address.
for example:
a user create a subdomain [USER.mysite.com]
and when he/she call this subdomain i want to redirect him/her to [www.mysite.com/001.html]page.
please help me to do it...or guide me that how to learn it
thank you
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
how would you recieve the number returned by the RETURN @@IDENTITY SQL statement? (in C#)
-- modified at 15:25 Tuesday 2nd October, 2007
|
|
|
|
|
Add a parameter with direction set to ParameterDirection.ReturnValue to the command.
If the procedure also returns a result, you have to read the result (or discard it) before you can read the value of the parameter.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi.
Yahoo web site is developed with which technology and language?
yahoo pages have no extentions and have a complicated address. it's sufficient to take a look at links on it!
Best wishes
|
|
|
|
|
Hi All
i am developing a custom control in which i have to add asp.net controls like radio button , dropdown and other user controls also.
Please tell me any web site where i can find this things .
Also i have to register javascript in that user control
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Are you trying to add dynamically??
If so the following might help, i am using vb.net as language
dim rb as new RadioButton
rb.Text="Click here"
rb.ID= "Whatever"
if you are trying to run this code as part of UC then Me.Controls.Add(rb) will do, else if you are trying to add the control from a page Me."UserControlID".Controls.Add(rb) should do,
Hope this helps
|
|
|
|
|
hi,
i am having a radiobutton list on my page which is getting data from the database and displaying.
now i want to validate whether atleast one of the radiobutton is selected.
so i want a javascipt code to check whether they are checked or not.
i am not so good at javascript and i dont have time to explore also.
i am having a web application.
If anyone knows it,please share it with me.its urgent.
thanks in advance.
swarup
|
|
|
|
|
Hi Swarup
Take this javascript function and regisetr it on submit button.
'RadioButtonList1' is the name of radio button list that will be given by asp at runtime so check the name by viewing the source code of yoor html page
register your script in this way
Button1.Attributes.Add("OnClick", "javascript:Checkthis();");
<br />
<script language="javascript" type="text/javascript"><br />
<br />
function Checkthis()<br />
{<br />
var radiobuttonlist=document.getElementsByName('RadioButtonList1');<br />
var flag=0;<br />
for(var index=0;index<radiobuttonlist.length;index++)<br />
{<br />
if(radiobuttonlist[index].checked)<br />
{<br />
flag=1;<br />
}<br />
}<br />
<br />
if(flag==1)<br />
{<br />
alert("One is checked");<br />
}<br />
else<br />
{<br />
alert('none is checked give error');<br />
}<br />
<br />
}<br />
<br />
<br />
</script><br />
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi,
I have a problem with List(of Double). below is just an example what happens in List(of Double).
Example:
''Say i have a arraylist filled with data
Dim arrlst as new Arraylist
arrlst.add(10.50)
arrlst.add(Nothing)
arrlst.add(0.0)
''Now I am creating a generic type list with data in above arraylist by looping
Dim lst as new List(of Double)
For i as integer = 0 to arrlst.count-1
lst.add(arrlst(i))
Next
Finally when I checked the data in the List
lst(0) = 10.50
lst(1) = 0.0 ''Here there should be Nothing or novalue, Instead it was 0.0
lst(2) = 0.0
The second value lst(1) should be nothing, Intead it becomes 0.0 while Instantiating List object. Then whats the point in using this object for generic types.
Please help me out, I am in a situation to use only List or collection(Generic type) because of our companies new standard.
I would appreciate if you give me a example.
Thanks in advance
Abdul
|
|
|
|
|
Your issue is with the double type. It can not be null. If you switch this to a nullable type then you will get more of the results you are expecting.
Hope that helps.
Ben
|
|
|
|
|
Please let me know. how to switch this to a nullable type.
It would appreciable, if you give a small example.
Thanks
Abdul
|
|
|
|