|
|
In anchor tag for the place of ? symbol. The whole code is not copy.
|
|
|
|
|
use Response.Redirect("Yourpage.aspx?path=sss");
now get the value of path within yourpage.aspx using Request.QueryString["path"]
Abhishek Sur
|
|
|
|
|
S. But my question is how to supply the value for the "path" dynamically using "?" mark
|
|
|
|
|
Hmm. A URL is a string. I'd probably use that as a starting point and consider maybe, just possibly, concatenating some kind of string that looks like a URL together. Including a ? at some point.
|
|
|
|
|
Karthick_gc wrote: S. But my question is how to supply the value for the "path" dynamically using "?" mark
Just use String or StringBuilder. Append Text. Add with path.
|
|
|
|
|
String.Format("myurl?path={0}", thePath)
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
I am using Mysql as backend to the asp.net 2.0 project. I have deployed the project in online. I want to take the database backup.
Can anybody give me an idea which concept i have to use.
Thanks
|
|
|
|
|
|
I wrote a code for sending mail in C#.net .
One of the input control is asking for the Smtp server?. How to find the value for Smtp server and what to fill in that control?
|
|
|
|
|
In webConfig file .
<system.net>
<mailsettings>
<smtp from="www.domainname.com">
<network host="domainname" password="pwd" username="uname">
|
|
|
|
|
|
use your own smtp server name in there.
ex : smtp.google.com
replace with your server name
Abhishek Sur
|
|
|
|
|
Karthick_gc wrote: One of the input control is asking for the Smtp server?.
Did you ever heard that there is a difference between a control and property?
Karthick_gc wrote: How to find the value for Smtp server and what to fill in that control?
Do you have any any idea what a SMTP Server is?
If you have a machine with SMTP Server configured, specify the nsame of that machine or its IP address.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
S. i specified the IP address. But an error message is coming?
|
|
|
|
|
Karthick_gc wrote: But an error message is coming?
What kinda error message are you getting?
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
First Configure The SMTP Server in IIS. Read this article Configure SMTP in IIS[^]
After successfully installation, it use the smtp server name in you code. If you want to use some other SMTP Server, user there SMTP IP Address or SMTP Server Name.
Good Luck.
|
|
|
|
|
hi..
Write Your IP address..or System name
To Know IP Address
1) click START button
2)click on RUN
3)type cmd
4) type ipconfig
hope this will help you
|
|
|
|
|
I have a unique id in my database that takes the form "EQ0001".
I want to split the id after the "EQ" part so i'm left with "EQ" in one part and "0001" in another. The "0001" will then be incremented by one and added back to the "EQ" thus giving "EQ0002".
If anyone can help its much appreciated.
|
|
|
|
|
Why not you use substring function.
string s = EQ0001;
string s1 = s.Substring(0, 2) ans - EQ ;
string s1 = s.Substring(3, 4) ans - 0001;
try this if you want to change string value in coding .
|
|
|
|
|
|
You might want to consider creating two fields in your database, one to handle the text part and the other to handle the auto incrementing numeric field.
Gives you a bit of flexibility for the point when you suddenly have your 10000th EQ...
|
|
|
|
|
OledbConnection con=new oleDbconnection("Connection String");
OleDbdataadapter da=new OleDbdataadapter("select MyID from MyTable",con);
Dataset ds=new Dataset();
da.fill(ds,"d");
DataTable dt=ds.Tables["d"];
for(int i=0;i<dt.rows.count;i++)>
{
DataRow dr=dt.Rows[i];
con.open();
Oledbcommand cmd=new OleDbcommand("insert into MyTable (MyId) values ((dr[i].ToString()).SubString(2)) where MyId='"+dr[i].ToString()+"'",con);
cmd.ExecuteNonQuery();
con.close();
}
over...At One step U can Replace all The Data In Your Table..
Hope This Will Help You..
|
|
|
|
|
Hello Folks
I need to develope a asp.net webpage which in it there are two seperate Datalists, one showing stored products in Database and the other showing the products 'added to shopping card'.
Actually when the user clicks on "Add To Shopping Card" link button of one product being shown in first DataList, the other DataList is going to get that and show it (In the same page). As user will click on products' "Add to Shoping Card" they will one by one add to Sh.C so it can hold more that one product. by the way the Sh.C needs to have a final price, calculating all prices of added products.
I've designed and bounded the first datalist correctly and what I have is list of products having the image and other information, and i've put a small plus sign (+) indicating the "Add to shopping card" proccess.
What I want to know is that how should I make the other DataList and get the list of that. (Include SQL Commands).
I'd appriciate your responses.
Thanks
Proper Prepration Prevents Poor Performance! h
|
|
|
|
|
HI,
I want to generate menu from database and give the order of menu as
per sequence or as per i wish?
for eg. one menu have Home, AboutUs ,contact and i want to change the
order such as AboutUs,Home, Contact. what should i have to do?
reply soon.
thanks.
keyur satyadev
|
|
|
|