|
Hi,
I want to do a bulk insert of around 25k records into sqlserver databse .
I am using asp.net1.1
thanks
|
|
|
|
|
rajmani wrote: I want to do a bulk insert of around 25k records into sqlserver databse .
for(int i=0;i<=YourValue;i++)
{
}
|
|
|
|
|
Hi!
how can i Foucs on a Text Box using javascript?
|
|
|
|
|
document.getElementByid("TextBoxID").focus();
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
We usually do something like this:
<script><br />
<br />
function LoadFocus(){<br />
<br />
document.getElementById('<%= <TextBoxName>.ClientID %>').focus();<br />
document.getElementById('<%= <TextBoxName>.ClientID %>').select();<br />
<br />
}<br />
<br />
window.attachEvent("onload", LoadFocus);<br />
<br />
}<br />
<br />
</script>
This will work for IE, but not sure about attachEvent for ff...would have to check if required.
|
|
|
|
|
daniel__c wrote: document.getElementById('<%= .ClientID %>').select();
Why do we need to do that?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Sorry, that should be
document.getElementById('<%= <TextBoxName>.ClientID %>')
not
document.getElementById('<%= .ClientID %>') as originally posted.
We usually do the .select() to select any text that is currently in the text box. You can do the focus alone, but the select tends to be a bit more user friendly.
|
|
|
|
|
Hi everyone,i'm a NOOB in asp.net and am stuck with a problem. so please, Please don't laugh at me.
right now, i'm working on a project which requires me to select several data from the database, then display all in 1 cell. how do i achieve that?
is it possible to keep the selected data in an array and display the array?
http://i4.photobucket.com/albums/y138/veracia/ideal.jpg
this will be my ideal outcome.
all answers and comments and help appreciated!
thanks!
veracia
|
|
|
|
|
Table Cell or Grid Cell ?
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
table cell
oh yes, i'm using sql server and VS2005.
|
|
|
|
|
Create lable control at run time add it into cell of table liek.
Get specified cell where u want to add.
Lable obj=new Lable();
obj.Text=Record('field1);
Cell.controls.add(obj);
Lable Obj2=new Lable();
obj2.Text =record("field2");
Cell.controls.add(obj);
...........
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Hi, thanks for your prompt reply.
However, I get the error "Record" doesn't exist in the current context.
|
|
|
|
|
I am using datalist control and want to perform paging for the data source..How to perform it
|
|
|
|
|
|
hi all,
I used Below methods but I am not getting visitors IP.It always shows internal IP.My server having Secure Socket Layer.
Request.ServerVariables("HTTP_X_FORWARDED_FOR") //return empty
Request.ServerVariables("REMOTE_ADDR") //got my internet IP
Request.UserHostAddress //got my internet IP
I dont know how to solve this.Is SSL is hiding the visitor IP? When I set deny access IP address in IIS it is working.Actually I want to put access using the visitor IP.How to do this.
Pls advice
Thanks in Advance.
|
|
|
|
|
Hello
VS 2005
I have a web serivce and created the MSI websetup project. Its just a simple web service. However, when i run the setup i get this following message. I can understand that file or reference to a file is missing. but I can't understand what file it is, and how to find out what file it is looking for.
Exception occurred while initializing the installation
System.IO.FileNotFoundException: could not load file or assembly.
file:///C:\Windows\System32\Software\myProject\PC1\ or one of its dependencies. The system cannot find the file specified.
Many thanks for any suggestions,
Steve
|
|
|
|
|
What you can do is that you can check the reference node in Solution explorer to know how many assemblies are using in your webserice.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
dear guys,
Message:-
"Deleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified."
Question ?
how can I set the delete command such that when I click on specific row it deleted from the Database, in other word I want the delete command to be daynamic ?????
thanks in advance..
|
|
|
|
|
aziz_subaie wrote: how can I set the delete command
There is one property called "Delete Query" in SqlDataSource. You can set the delete command there.
aziz_subaie wrote: daynamic
More : Inserting, Updating, and Deleting Data with the SqlDataSource[^]
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Or register the Deleting event of the SqlDataSource and set the query there.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
thanks to you all that was helpful
|
|
|
|
|
Hello,
I need a simple code to encrypt & decrypt a password use RSA ,
I want it be very simple ,without parameters or making public & private key.xml.
would any body help me?
thanks.
|
|
|
|
|
Hi, i'm kinda new to the whole asp.net side of developing. I've created a web page with a combobox and textbox. I have a Database with a table (Postcodes).
First of all, how do i populate the combobox with data from this table (column: towns) and, second of all, when i change item, how do i make the textbox display the postcode (a.k.a. zip code) (column: postcode).
I am using visual basic as my language in visual studio 2005 with a seperate codepage for my aspx page.
|
|
|
|
|
The ANZAC wrote: First of all, how do i populate the combobox with data from this table (column: towns)
<br />
<br />
In form_load event, <br />
<br />
<code> <br />
SqlConnection dbConn = new SqlConnection(connectionString);<br />
<br />
dbConn.Open();<br />
<br />
SqlDataAdapter da = new SqlDataAdapter("SELECT town FROM table1", dbConn);<br />
DataSet ds = new DataSet(); <br />
da.Fill(ds);<br />
<br />
dbConn.Close();<br />
<br />
DropDownList1.DataSource = ds.Tables[0];<br />
DropDownList1.DataTextField = "town";<br />
DropDownList1.DataValueField = "postalcode";<br />
DropDownList1.DataBind();<br />
The ANZAC wrote: second of all, when i change item, how do i make the textbox display the postcode (a.k.a. zip code) (column: postcode).
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
txtPostalCode.Text = DropDownList1.SelectedValue;<br />
}
That's all.
Hope it helps.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
I have a problem when I display a datagrid that contains too many rows the asp.net menu control is messed up in Internet Explorer. The only solution to this problem is to page the datagrid but I can't do that coz the user can edit and add data in it...so I don't know how to handle this problem??
Messed up meaning the menu is supposed to be horizontal with a certain style but when displayed it becomes vertical and the styles and colors are gone!!! The menu items become links?? And I noticed that this happens only when the datagrid displayed in the same page contains too many rows.
Can someone tell me why does that happen and if there is a solution to this problem??
|
|
|
|