|
You're either saying that you don't understand why redirecting with one value only doesn't work ( in which case, you need to buy a book if you can't see why having a redirect in a loop only passes one value ), or you're complaining that the gateway you're using doesn't support what you want ( in which case, there's nothign we can do about it ).
I would expect if you build a URL with multiple values on it, it would work. If it doesn't, then the gateway does not support it, so what can we do about 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 )
|
|
|
|
|
Hello friends,
I build a dll in my application using class library project.
And in web application i add reference it is also showing in the bin folder and application directory.
but on the page.aspx.cs file when i try to import this with "using " keyword i am not able to do this.
I am not finding the classes in the application.
Plzz help me wht to now...
Thanks in advance..........
Deepak Nigam
|
|
|
|
|
Did you add a reference to the dll in the project?
|
|
|
|
|
Does the dll belongs to same solluation file?
please check the reference that you have added.
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
Is there a way to get SharePoint to not preserve the state of a variable?
I want to be able to refresh the screen and have the previous value destroyed so the process knows to start with a fresh application state.
This is a SharePoint Web Part included with other web parts on an asp webpage. The SharePoint server renders the page so I don't have access to the page load events.
|
|
|
|
|
Hi,
In a web application, when user clicks log out button, I run Session.RemoveAll() and redirect his to home page. but after log out if it click back button of browser, he come back to previous page, that in load of it I checked the session, but the Load event don't fire (by clucking back button of browser).
what should I do?
Best wishes
|
|
|
|
|
Actully that page is coming from the cache.
try to remove the cache using this code
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now);
you can write this code on the master page load event........
Deepak Nigam
|
|
|
|
|
how do we open new aspx page or html file in new window from within a function in the .cs file.
(note: i have the html code that i want it in the page in a string variable)
more explaination:
i have a function that render the forms in my page into an html code, this is to open in it in a new page to be printable version. my current code now open the new page in the same page, and this is the code:
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Write(strHTML);
HttpContext.Current.Response.End();
where strHtml is the variable that contains the html code of the new page.
thanks in advance
|
|
|
|
|
You cant directly from the code behind as the server doesnt have access to the clients pc, but if you use Page.RegisterStartupScript(.NET 1.1) or ClientScript.RegisterStartupScript(for .net3.5) or RegisterClientScriptBlock you can use javascript to open the new page, with the html contents. you'll have to enclose the js function in a block for it to work right. The difference between the functions is when they get executed. i cant remember the perticulars right now, i havnt used them in a while..i typically use StartupScript. A quick MSDN search should explain the differences rather easily. and if you want this to happen each time a button or some other control fires an event just use <your control="">.attributs.add(event, js code); Hope i helped. </your>
|
|
|
|
|
Hi,
I have a reportviewer control with a local report which consists of a list control (in the list is a textbox for the group header and a table with details). My question is that although the InitialToggleState = Collapsed by default on the textbox which is also the details group of the list control, the group is always expanded at runtime. Are more settings required to be able to get the "+" next to the group header and details be collapsed? Please assist.
|
|
|
|
|
Hi! I am building a web site, and I stuck at one place(a place for beginners), I have a striing what is filled in one page, and then when the button is clicked, I want to get the string from the previous page and used in my current page, any solutions how I can do that. Thanks ahead
|
|
|
|
|
add that string in ViewState on previose page
ViewState["string"]=string;
and get it on new page
string str= ViewState["string"].tostring();
but you can use it only for one page.
|
|
|
|
|
My dear friend viewstate work on page level......
Deepak Nigam
|
|
|
|
|
string stringname = (Request.QueryString["variable"]);
or just use sessions, that is a good way of transfering information from page to page
so set a session in one page:
Session["session1"] = stringname;
then get the session
if (Session["session1"] != null)
{
stringname= Session["session1"].ToString();
}
|
|
|
|
|
you can use postbackurl also......
Deepak Nigam
|
|
|
|
|
Hi! As you've seen in the title I have a very simple problem, but I can't seem to find a good answer on the web. I have programmed a web service and a web application on my machine. Everything works great. However, it seems VS .NET has done all the work installing this on my machine. Now I want to install it on a server and don't really know how to do it. I've tried messing around with IIS, but I'm no specialist. Hence my question: do you know a good step-by-step reference that can guide me through this? Or if it's simple enough you could tell me directly!
Thank you very much!
|
|
|
|
|
I am messing with web services now, and I will give you one small advice to make some web or windows client for using the web service, cause once you will upload at remote web server you can not test the web service. If you want to install it you should publish the web service, right click on the project and press publish, then you can put the folder at the web server when you we're planning to put, it's similar like IIS, but you can search on Google, for detailed explanations. Laziale
|
|
|
|
|
Yeah I have web client for my service and everything is tested, I just want to transfer it to another local computer. I've searched on google, but I haven't found anything detailed.
|
|
|
|
|
I have a datatable which is having n no. of rows and each row has a unique field say ID.
Now I want to get a particular row for a specified ID.
eg. there are 5 rows in a datatable and the id's are
1,2,3,4 and 5 and if I want to select a row having ID = 4
What will be the code snippet for that?
Does anybody have any idea?
Thanks in advance,
|
|
|
|
|
IF your datatable hasn't got too many rows you could o the trick with:
foreach (DataRow row in dataTable.Rows)
{
if (row["ID"].Equals(4))
{
}
}
|
|
|
|
|
You can do it like this
dataTable.rows[4]["ColumName"].tostring()
|
|
|
|
|
Stick with the answer you got in the C# forum. It is the better way to achieve this.
|
|
|
|
|
i have this code:
<div>
<asp:DropDownList ID="DropDownList2" runat="server">
</asp:DropDownList><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><;asp:Button ID="Button1" runat="server" Text="Button" />
</div>
and i want when i push button, the above tools (that are bolded) create dynamically again(in c#) and if i push the button again they create again and in the end i can get their values for creating a query for doing search
has anybody idea?
modified on Wednesday, May 7, 2008 8:45 AM
|
|
|
|
|
Guys,
I am doing the following where any and all parts of the path are re-written so that all the requests are passed back to the write.aspx page during Application_BeginRequest. I do not have any httphandlers or httpmodules implemented and write.aspx file does exist. Even though my path contains a file name which exists, the server throws 404 exception.
Eg: http://<server>/home.aspx?pageid=1 > http://<server>/write.aspx/1
Eg: http://<server>/home.aspx?pageid=1&release=22 > http://<server>/write.aspx/1/release/22
Is there a simpler way of performing re-write. I did look at few articles and they way they were doing things (which ofcourse will work) but I am trying to take the simplest approach.
Shrini
|
|
|
|
|
hi friends...
i'm creating two texboxes in a Div dynamically using javascript. i want to add some space between the 2 textboxes.. how i can do this..
Thks in advance..
|
|
|
|