|
It's my same qus. I am not pick the Text through query string.
I have write this code.
String StrCom;
StrCom=Convert.ChangeType(Request.QueryString.GetValues("Pivid")(0),String);
Label5.Text = StrCom;
Display Two Error: Method Name Expeced and String is type but is used to
like a variable
Please Correct This Syntax
|
|
|
|
|
u use this its working yaar
string StrCom = Request.QueryString["CID"];
Label1.Text = StrCom;
and send me how u passing qry string and send url which contain text.
Piyush Vardhan Singh
|
|
|
|
|
I have been trying this code for One hour.
Pick a Value not for text.
|
|
|
|
|
it workin on mysd what ur query string url where u pic this text send me
Piyush Vardhan Singh
|
|
|
|
|
Hi friend
Can I run a code when my webform is closing? I want to send "Bye" to a computer in network when user close the form.
thanks
|
|
|
|
|
You can use the onunload event to do something when the user leaves the page. You have to keep track of why the user is leaving, though, as the event is triggered regardless of why the user is leaving the page. Even a postback counts as leaving the page.
You have to make a request to communicate with the server, either by opening a new window, or using AJAX.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
on unload event which is in the body tag there i am calling the meeeage box .which is appearing for all the buttons.Why it is happening?
and one more thing , i have a function defined i the code behind file , how can i call that funcion on closing the form , i mean on closing the form i am getting the confirm message , if the user click the yes button , at that moment i want to execute that funciton.
How should i do it?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: on unload event which is in the body tag there i am calling the meeeage box .which is appearing for all the buttons.Why it is happening?
As I said, the event is triggered whenever the user leaves the page, regardless of the reason.
Sonia Gupta wrote: and one more thing , i have a function defined i the code behind file , how can i call that funcion on closing the form , i mean on closing the form i am getting the confirm message , if the user click the yes button , at that moment i want to execute that funciton.
As I said, you have to send a request to the server, either by opening a new window or using AJAX.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
hi ,
i am designing an indexing server.here i want to display the values based on wildcards.
plz help me to write the command for display the wildcard values in indexing server results using asp.net
with regards
venkat
|
|
|
|
|
I'm coding login and logout pages.My problem is,first i login with username "A" and then logout.After that i login with another username "B" but login page didn't redirect to index.aspx and i cannot log in anymore.-*-
i think it's about cache of each pages.but i don't known where to fixed it.
for LogIn.aspx
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
if (CheckAuthenticate(Login1.UserName, Login1.Password))
{
Session["Username"] = Login1.UserName;
Session["Password"] = Login1.Password;
Session["Authentication"] = "1";
if (Login1.RememberMeSet)
{
Response.Cookies["AuthenCookies"]["User"] = Login1.UserName;
Response.Cookies["AuthenCookies"].Expires = DateTime.Now.AddMonths(1);
}
e.Authenticated = true;
FormsAuthentication.RedirectFromLoginPage((string)Session["Username"]
, false);
}
else
{
Session["Authentication"] = "0";
e.Authenticated = false;
}
}
for LogOut.aspx
protected void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Session["Username"] = null;
Session["Password"] = null;
Session["Authentication"] = null;
Session.Abandon();
FormsAuthentication.SignOut();
FormsAuthentication.RedirectToLoginPage();
}
In Page_Load function of each pages, i added this code.
Response.Cache.SetCacheability(HttpCacheability.NoCache);
string LoginPass = (string)Session["Authentication"];
if (LoginPass == "0" || LoginPass == null)
Response.Redirect("LogIn.aspx");
Thank for help. =)
|
|
|
|
|
CREATE FUNCTION [dbo].[waste] () <br />
RETURNS table<br />
<br />
AS <br />
declare @a int<br />
declare @b int<br />
BEGIN <br />
declare cur cursor for select a1,a2 from a<br />
open cur<br />
fetch next from a into @a,@b<br />
while @@FETCH_STATUS =0<br />
BEGIN<br />
SELECT @a as a1 , @b as a2<br />
fetch next from a into @a , @b<br />
END<br />
close cur<br />
deallocate cur<br />
return<br />
END
where is the bug lying?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
The main problem is that you are posting an SQL question in the ASP.NET forum.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi there,
Screen Shot
I need some help regarding the screen shot above of my current windows application.
What would be the best way to design this layout in ASP.Net?
I'm trying to avoid as many tables as possible.
When should I use tables and when should I use div tags?
Any link or resources on where to find tutorials on converting windows apps to web apps would be greatly appreciated.
I tried googling but no luck.
Thanks
|
|
|
|
|
GermanDM wrote: I'm trying to avoid as many tables as possible.
Why, tables are always good to format the page and align the controls in expected positions. I think creating design with tables will be good option. Usually div tag is used to group elements and to format with styles. Browsers will add a line break tag for each div. So creating entire page avoiding tables is not looking good to me.
|
|
|
|
|
Well i read that tables slow your app down. Even tho this app will only be used as intranets on networks so should be fine then.
I agree that using tables is the easiest way to setup "input/forms".
I do use div to setup the main layout tho.
Do you know of any resources on where I can find more info regarding writing actual web apps like windows apps not just normal web apps with a contact form. Im looking for help on writing websites which is based on alot of server side work.
Thanks for your reply
|
|
|
|
|
See this[^], but this is just opposite to what I said
|
|
|
|
|
I am writing a ASP.NET 2.0 web based application in which
I want the user to create & select a Folder using Windows Explorer.After the user creates and selects the folder, on pressing OK I should be able to get the PATH of the folder for storing in a database.
The problem is that there is nothing like FolderBrowserDialog in WinForms which allows me to select a Folder and get its path.
I got a good article in Code project but its written in VC++ 6.0.The article is
http://www.codeproject.com/dialog/cfolderdialog.asp
Can someone provide me the equivalent code in VC# Visual Studio 2005 or help me write a similar code. It will be greatly appreciated.
Thanks in advance,
Sunny74
|
|
|
|
|
Hi to all,
I have problem in modal Dialog box , when I show modal dialog box at first time it show the "Title" but when I do any posback event on modal dialog page the title for modal box is disappeared...
Any one know any idea .... how to persist title of modal dialog box "After post back event".
Regards
Yogesh M
|
|
|
|
|
Hi I have one usercontrol in that using repeater i shown some links in that template column...,
Now my question is,
The site maximize mode its showing the links asusual properly...,
But when i reduce the site size, in that time some links are showing down side,
I dont like to show those things down side,
In that time also the links have to be come same line...,
How to do that?,
Plz help me,
Regards,
Magi
|
|
|
|
|
For this, your tables which contains links and other elements should be sized in percentages. I mean giving a 100% width for table will resize the content when browser gets resized.
|
|
|
|
|
Hi navaneeth,
Thanks For ur reply,
Actually i given width=100% only...,
Eventhough when i resized the page i am getting the links in down side...,
See i have used that links in my usercontrol...,
I called that usercontrol in my aspx page...,
Now that usercontrols are displaying in that aspx form only...,
In that usercontrol table i given width=100%
But resizing window,i am getting some links in down side,
Regards,
Magi
|
|
|
|
|
what is your outer table size ?
|
|
|
|
|
Outer table?,
Means i didnt get ur quest...,
See that user control, i have a table in that i displayed the links...,
The table width is 100%...,
And that usercontrol i reffered in my aspx page...,
there,I wont tell that in any table...,
Just i inserted that user control in my aspx form...,
Regards,
Magi
|
|
|
|
|
Magh_M wrote: Outer table?,
When you are designing a page that has to be fit on browser window when it resizes, needs an outer table with width specified in percentages. Outer table is the first table where you put other tables.
|
|
|
|
|
ya i given in that width 100%,
Eventhough coming some links are down sides
Regards,
Magi
|
|
|
|