|
To send variables in URLs you would need something like this:
index.html?x=1
or you could you session variables and do it that way
research these two methods and then post back any probs
|
|
|
|
|
I have a wizardcontrol with 3 steps
In step 2 i have a gridview bound to a sqldatasource (In design time) and im setting the selectedindex = 0 in designtime as well
If a condition is met on step one, i need to skip step 2 and go to step 3 (The selectedvalue of the first row in the gridview wil be used)
In step 3 i just need to get the selectedvalue of the gridview in step 2
In step 3, when i try to get the selectedvalue, selectedvalue is nothing, even though selectedindex = 0 and rows.count > 0, ive also tried with datakeys(0), but i get an error of index out of the bunds of the array
Why is this happening??
Does the gridview need to be shown in the page in order to set the selectedvalue??
If i go step after step, selectedvalue of gridview has the corresponding value
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
This is weird, if i access the rows property
dim X as integer = me.grid.rows.count
Now selectedvalue has a value > 0 as it should
But if i move in the wizard forward and then backwards (Just testing, this wouldnt be the normal flow), suddenly selectedvalue is nothing and reading the rows property again doesnt make any difference
If anyone has a workaround for this, please let me know
Alexei Rodriguez
|
|
|
|
|
Hi all
I am bulding application web.
I have problem with Licenes key
I check key by SerialNumber Disk Driver on Server.
HardDrive hd = null;
ManagementObjectSearcher searcher;
ArrayList hdCollection = new ArrayList();
searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive");
foreach (ManagementObject wmi_HD in searcher.Get())
{
hd = new HardDrive();
hd.Model = wmi_HD["Model"].ToString();
hd.Type = wmi_HD["InterfaceType"].ToString();
if (wmi_HD["SerialNumber"] == null)
hd.SerialNo = "None";
else
hd.SerialNo = wmi_HD["SerialNumber"].ToString();
hdCollection.Add(hd);
}
But have problem when i insert usb, the system get SerialNo of USB.
How can i get only SerialNo HDD on Computer.
|
|
|
|
|
You can check if the drive letter is a fixed drive, there's a way to get an array of DriveInfo objects that will tell you that.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Just to add, this s a C# question that has nothing to do with ASP.NET, why did you post it here ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Thanks Reply
my app is asp.net check LicenesKey
With DriveInfo i dont get SerialNumber HDD disk !!!!
|
|
|
|
|
OK, well, that's reasonable. It's still not an ASP.NET question, tho.
No, with DriveInfo you can check if the drive you're looking at is removable. Does your other code not give you the drive letter you're looking at so you can match the two ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
I have a small bit of Javascript code in my masterPage file;
var images = new Array("images/hanks_pic.jpg", "images/sany0081.jpg");
var imageLinks = new Array("flickr.com/photos/jimhankey/523109965/in/set-72157603832555431/",
"codeproject.com");
var captions = new Array("The rules according to Luna", "Stroud Kitchen remodel");
var curImage = 0;
function initBanner()
{
rotate();
}
function rotate()
{
curImage++;
if (curImage == images.length)
curImage = 0;
document.getElementById("image-of-the-day").src = images[curImage];
document.getElementById("image-link").href = "http://www." + imageLinks[curImage];
document.getElementById("image-caption").innerHTML = captions[curImage];
window.setTimeout("rotate()", 3 * 1000);
}
used to do rotate images every 3 seconds.
When I run it inline everything works fine!
But when I import it
<script id="script" type="text/javascript" src="JScript.js" />
some buttons defined on an entirely different page stops working? i.e. the calls to the OnClick never get invoked?
Any ideas?
Mike
|
|
|
|
|
Where have you written this line in Master Page
<div class="ForumSig"> <font color="gray">Thanks and Regards</font>
<b> Sandeep </b>
<font color="blue" style="font-style:italic;">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... "
</font>
</div>
|
|
|
|
|
In the body if I put it head it doesn't work at all.
Thanks
Mike
|
|
|
|
|
First of all, I want to apologize for stupid title. Don't have any idea how to form it well.
Second, I have to work on custom data grid for project.
Stored procedure sometimes return one table, and sometime more then one.
I've started the project, but I faced the problem on the beginning.
I want to be able to add items to that grid like you can add items to ListView in windows forms which will give me more control. (Without Java Script, only ASP.NET)
On RenderContents I have a code that render table header and footer so that table can be displayed in DesignMode (WebControl).
I've also created a void that takes one argument. String (which is the actual data to be added) and then generate tr's and td's and save them in some variable.
That variable is appended in RenderContents void (between header and footer part), but when I run it, table gets rendered, but the generated data is rendered outside the table.
The question is, can I achieve this kind of functionality and how?
|
|
|
|
|
hello
how can i prevent a user to go back to the previous page after he has clicked logged button out in asp.net.
please help
thank you
|
|
|
|
|
How do you manage login? Are you using cookies, or whatelse?
I Love T-SQL
|
|
|
|
|
I have to write an article, this gets asked so often, I am left wondering how people handle login, for it not to work.
Step 1 - write a base class for all pages
Step 2 - when someone logs in, set a session variable
Step 3- when they log out, clear that variable
Step 4 - in your base page, redirect to the login page if the variable is not set.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hi experts, Is there any way to send the entire contents of a placeholder to print
|
|
|
|
|
No. You'd need to open a new window with just that placeholder in it.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
please help me more. i dont see anything that i need
|
|
|
|
|
i can creat a new html page but i dont know how can i send the values to another html page. can any body help me???
|
|
|
|
|
It seems to me that you don't know what you're doing and should buy a beginners book, just abandon the project you're on for now.
You would create a page that passes a value on the URL telling it how to query for the same data to populate the control you want to print.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
hello
How can i set the login page as the default page in the browser. if the user writes the path for another page then he is redirected to the login page. how can i do that??
please help
Thank you
|
|
|
|
|
You have to write your own code about user athentification which checks user's login.
I Love T-SQL
|
|
|
|
|
You need to set the authentication mode variable in the web.config. Have a look at the msdn reference for these settings:
<authentication mode="Forms">
<forms name="MyApplication" loginurl="login.aspx" protection="All" timeout="120" />
</authentication>
Regards, Rob
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
Hai,
In my asp.Net application, i am using javascript for some of the webforms. When i run the application in some browsers where javascript is disabled, my application may not execute for some of the users browser.
So how can i avoid this problem by cross checking the browsers , that too in the application during runtime.
If anyone knows the solution means can i get a piece of codes to solve this problem..
Is there any other way to solve this problem ,without altering my codes (javascript ) in my application.
VanithaVasu
|
|
|
|
|
Do you need to enable programatically javascript if it is disabled on browser?
I Love T-SQL
|
|
|
|