|
I used querystring to show products and productsdetails in my site.but I don't know what code should I write in codebehind for security.I don't want to encoding .but where a user delete the value of querystring and press enter, I want to show the right page .what code should T write(asp.net whit C#)
|
|
|
|
|
bbc_sh wrote: I used querystring to show products and productsdetails in my site.but I don't know what code should I write in codebehind for security.I don't want to encoding .but where a user delete the value of querystring and press enter, I want to show the right page .what code should T write(asp.net whit C#)
if (ViewState["key"] == null)
{
ViewState["key"] = Request.QueryString["myID"];
}
if (ViewState["key"].ToString() != Request.QueryString["myID"])
{
}
regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
how can I take viewstate?
what is viewstate?
|
|
|
|
|
bbc_sh wrote: how can I take viewstate?
what?
bbc_sh wrote: what is viewstate?
http://msdn.microsoft.com/en-us/library/ms972976.aspx
|
|
|
|
|
Hi all
ANy body can help me plz with a javascript that presses right ALT + Right shift when choosing a seleclted value from a drop downlist
thanks
|
|
|
|
|
you want a javascript function which performs the action of ALT + right shift?
|
|
|
|
|
Yes this is exactly what i want. Is this possible?
|
|
|
|
|
samerh wrote: Is this possible?
Yes.
Try this script.
This example gives you an alert when you press shift + alt + .(dot) keys
var isAlt = false;
var isShift=false;
function cntrKey(e)
{
if(e.keyCode == 18)
isAlt=false;
if(e.keyCode == 16)
isShift=false;
}
function othrKey(e)
{
if(e.keyCode == 18)
isAlt=true;
if(e.keyCode == 16)
isShift=true;
if(e.keyCode == 190 && isAlt == true && isShift==true)
{
alert('Shift + Alt + . ');
return false;
}
}
Call this script on body tag
body onkeyup="cntrKey(event);" onkeydown="othrKey(event);"
regard
khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Lets suppose this script checks if ALT +Shift key is pressed, then
1- how can i change the language from English (RTL) to Arabic (LTR).
2- Does it differ if u press right(ALT +Shift) or Left(ALT +Shift )
thanks
|
|
|
|
|
Hi my dataset having multiple datatable...,
I dont know how many datatables its having...,
Now all the tables i want to bind it in different different excel file how to do that?,
Plz help me
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
modified on Tuesday, July 15, 2008 8:33 AM
|
|
|
|
|
Hi,
In one of the tasks, we are using sqlbulkcopy class of .net with three parameters - source db info, destination db info, query to be used to transfer data.
We are trying to see if we can get a count of the number of rows that are actually transmitted by the above command. Is there any way to do that? sqlbulkcopy class does not seem to have any attribute that would give this information. Is there any direct or indirect way?
Thanks in advance
sb
|
|
|
|
|
|
Hello Friends,
I am developing an application in ASP.Net with VB.
I am adding some checkboxes at runtime like this:
<input type=checkbox id=" + SomeRandomString + "/>"
So, on some button click event, how can i know that which checkboxes are checked, i want this for further evaluation.
Please somebody help me.
Thanks and Regards,
Nagendra.
|
|
|
|
|
You need to loop through all the controls on the web page and if you find the control is of type 'checkbox', then check for its Checkbox.Checked property.
Hope this helps.
|
|
|
|
|
nagendrathecoder wrote: "
how is that adding at runtime?
nagendrathecoder wrote: So, on some button click event, how can i know that which checkboxes are checked, i want this for further evaluation.
if you are creating the control at runtime just find the control in the event using FindControl and go from there
|
|
|
|
|
I used your method but not getting control of type CheckBox?????
|
|
|
|
|
actually i have two file upload control at first page .
and i want to upload two image. at one button click .for this i have write a coda:
string filepath = "C:\\Uploads";
HttpFileCollection uploadedFiles = Request.Files;
for (int i = 0; i < uploadedFiles.Count; i++)
{
HttpPostedFile userPostedFile = uploadedFiles[i];
userPostedFile.SaveAs(filepath + "\\" +
System.IO.Path.GetFileName(userPostedFile.FileName));
}
but now i want to retrive the images at page third .so tell me .
what should i do.
thanks in advance .
gaurav
|
|
|
|
|
Get it from the place where you have saved it physically.
Apurva Kaushal
|
|
|
|
|
If you want to display the image on a web page, put HTML 'Image' object on web page and make this a server control. Then assign Image.Src = 'image path'. You'll see the image on the page. Hope this helps.
|
|
|
|
|
Hai to all,
I have already installed sqlserver 2000 in my windowsXP.Now i hae installed vs2003 and vs2005.
Presently working on vs2003 framework1.1 with sqlserver 2000.
I want to upgrade from vs2003 to vs2005 with sqlserver2005.
So is there any problem occrs if i install sqlserver2005 when sqlserver2000 already existed.
Tell me which type precautions i have to take before installation.
I want both versions of .net and sqlserver.
kissy
|
|
|
|
|
Hi
I have created database where i store employees 's pictures and i am able to display this images on a asp.net page where i use "Response.BinaryWrite(dr.Item("Picture"))" so it display it.The problem is i have to display this pictures on a image control which i can't figure it how can i do it.
Mamphekgo
|
|
|
|
|
try this code...................
Dim imageBytes() As Byte
imageBytes = sqlCommand.ExecuteScalar()
Response.Clear()
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.Public)
Response.ContentType = "image/jpeg"
Response.OutputStream.Write(imageBytes, 0, imageBytes.Length)
Image1.ImageUrl = "Image.aspx" 'Your page name in which u have image control
Response.End()
please vote if this post helps u.
|
|
|
|
|
Hi there,
A quick question for you all. does anybody out there know how to do the pop up tooltips that are done on facebook
Michael
|
|
|
|
|
how can i read rss. what is rss? is any company provide rss or you can easily read rss without permission? if read then how i get rss from other sites and work on it?
|
|
|
|
|
Is there any problem in accessing google at your place as answers to these questions you can easily get with google.
Apurva Kaushal
|
|
|
|