|
OHHH!
Files that will send for me may be more than 600mb. with dial-up connection HOW CAN I DOWNLOAD ALL OF THEM
|
|
|
|
|
But without downloading how could you get the files?
You can list the files using FTP list command but that will also list files that are corrupted during uploading.
|
|
|
|
|
Hello,
I think this is my first post here. But I've already used a lot of your codes here! Thanks a lot for them!
Now it's my turn to ask a question
Is it possible to get the serial number of the motherboard via ASP.NET? This would me interesting to send the license key of my software automatically.
If this is possible, can someone give me an exaple?
Thanks a lot!
Madmatt.
|
|
|
|
|
|
This information was very helpfull. But, if you have time to make it, can you make a class to do this?
|
|
|
|
|
_Madmatt wrote: if you have time to make it, can you make a class to do this?
About which class you are talking about ?
|
|
|
|
|
I think he wants you to write one ActiveX / Plugin which will get motherboard serial no of the client.
|
|
|
|
|
If you can't do your own work, you should advertise in the job section of the site and pay the person you expect to do it for you. This will also give you rights to expect the code to do exactly what you want, and to ask for changes if you need them.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I dont think its a good idea to use any external ActiveX / browser plugin. More you add this to your site, less the amount of users will visit your site.
|
|
|
|
|
I don't think ActiveX is a big problem? But my idea has some other problems. Just like this one: of they buy on another pc the license will not be accepted...
Thanks a lot for your help! I'll search another method for web-based registering.
Madmatt.
|
|
|
|
|
Hi..
///I m executing javascript function from codebehind (c#) as below
ClientScript.RegisterStartupScript(GetType(), "Check_Wrong_AnsString",
"Check_Wrong_AnsString('" + txtWrongAns1.Text.Trim() + "');", true);
////following is my javascript function.
function Check_Wrong_AnsString(args)
{
var AnsString = args;
if (AnsString.length < 1)
{
alert('Can not be blank');
return false;
}
}
//// i want to fetch javascript function's return value to codebehind.
thanks
By:
Hemant Thaker
|
|
|
|
|
From the function set value to some hidden variable, then access from codebehind !!
|
|
|
|
|
/////following way i m assigning to hidden field in javascript
function Check_Wrong_AnsString(args)
{
if (AnsString.length < 1)
{
alert('Can not be blank');
document.getElementById("ctl00_cnPlaHolaaa_Hidden_WrongAns").value = "false";
return;
}
}
////////aspx file
<asp:HiddenField id="Hidden_WrongAns" runat="server" value="true"/>
///////this is my codebehind file
ClientScript.RegisterStartupScript(GetType(), "Check_Wrong_AnsString", "Check_Wrong_AnsString('" + txtWrongAns1.Text.Trim() + "');", true);
string hh = Hidden_WrongAns.Value.ToString();
Response.Write(hh);
//////////but it writes "true" to browser (the default value we supplied at declaration of hidden field)
it should write "false" if function returns false.
please tell me if i have done wrong coding
thanks
By:
Hemant Thaker
|
|
|
|
|
Hemant Thaker wrote: <asp:hiddenfield id="Hidden_WrongAns" runat="server" value="true">
This is your server side control. You need to first get "ClientID"
var HClientID="<%=Hidden_WrongAns.ClientID%>";
var hidID=document.getElementById(HClientID).value = "false";
|
|
|
|
|
gives me javascript error on tracing as below
jscript runtime error :document.getelementId(...) is null or not an object
???????????? whats that
thx
By:
Hemant Thaker
|
|
|
|
|
Hemant Thaker wrote:
jscript runtime error :document.getelementId(...) is null or not an object
???????????? whats that
I dont know, what you are doing with getelementId ???
Try this :
.cs file code ::
protected void Button1_Click(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(GetType(), "Check_Wrong_AnsString", "SetServerValue()", true);
Response.Write(HiddenField1.Value);
}
Javascript ::
<script language="javascript">
var HClientID="<%=HiddenField1.ClientID%>";
function SetServerValue(args)
{
var hidID=document.getElementById(HClientID).value = "false";
}
</script>
ASPX :
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
<asp:HiddenField ID="HiddenField1" runat="server" />
Try and run this. This working fine !!
Hope this will help you. Let me know if u have any more issue !!
|
|
|
|
|
wow.. nice answer my budd.
|
|
|
|
|
Hi,
I have a form where there is a combobox, and next to it there is a link "Other" that opens a popup and lets the user to create more options (that dont appear in the combo)
How can I notify the parent form (the one with the combo) that the popup form added succesfuly the new option?
With winforms is really easy using events.. but in web its confusing
Help please!
Thx
|
|
|
|
|
Do you want to pass value from child window to parent window? This article may help you. Link[^]
|
|
|
|
|
Hi All
I need to have a 4 page registration form.
Each page asks for a different set of details and the details need to be added in different table
for each page.
The last page of the process is a confirmation page that shows all the details entered in the first 3 pages.
Incase, if user wants to change anything he can go to the previous page and edit through the site map.
So what is the best way to acheive this kind of functionality?
Thanks in advance!!!
IT_Help
|
|
|
|
|
Practically speaking, If I would be in your place I would have create 4 different place which I would navigate one by one and store data into database.
I would also create a breadcrumb in the header which will point to every page I traversed and get the data properly from database upon visit.
|
|
|
|
|
Thanks for your reply.
I was thinkking of doing the same way and almost completed the coding to do this, but the problem is the entry in first table drives the entries in next tables, so if i have to edit anyting on first page then the next dont stand a meaning as i have to insert again .
i will explain you through an exapmle
My first insert in first table generates an identity feild which i was putting in session and then on second page i was making an insert based on the identity feild generated in first table
From DB perspective the tables had a foreign key contraint which didnt allow me to insert in second table till there is an entry in first table.
I read somewhere about storing the whole data in a session object and doing the insert after the user confirms on the last page.
What do you say about this approach?
IT_Help
|
|
|
|
|
IT_Help wrote: I read somewhere about storing the whole data in a session object and doing the insert after the user confirms on the last page.
Well, I strongly oppose this. I think you should use your page a better way rather than relying on so much in session.
Regarding your problem, I think it is very common problem and we often face the same thing. I would suggest to send this within a hidden field. If you are using Request.Redirect to go to another page, you might use Querystring as well. Just inside the page store the value(id) that comes through querystring to your hidden field, and when this page is going to save, you will get the data from hidden field.
This is a good approach. Why should you store data on session if the information is not so much sensitive. You should only store data like user authentication level to session so that you could validate the session on every request. Nothing more should be stored in session.
I hope you understand. If you still having problem, let me know.
|
|
|
|
|
Add an if statement in pageload event on every page that checks database if the entry for that user exist, if it exist then all field sould be preloaded with the data in the database and when the user hit submit, do a nother check and if the entry exist then the system should update database, if not then save the new entry.
|
|
|
|
|
Hey ! Thanks for your reply, but i am not maintaining any users so cant check the user id.
I will surely keep this in mind if in future i need to do anything like this.
Anyways i have replied above and explained the problem more elaborately.
Do read it and give your inputs as well
Thanks!!
IT_Help
|
|
|
|