|
Hi .. sorry but I solved the problem of question one.. Thanks alot. I was making a mistake because I want to code in the PageIndexChanged. Thanks alot. Now a problem is occuring because every time I click on the next button .. it refreshes the page and do nothing else .. it stays on the same page (it stays on number 1), then when i press it the second time it goes in number 2. Do you know whats the problem pls?
For the images .. they are 100% working thanks to you.
Now for the Links within the datagrid I didn't put the code right now. I will try it out later.
Thanks alot
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hello,
Yesterday I was getting mad with a conversion from Dynamic pages to static HTML one, Today I've succeded in my tries, retrieving all pages that are referred by a DropDownList recreating the POST request to a website.
In order to do that I used the viewstate sent by browser and inserted it hardcoded in my class.
I've seen that some view state decoders accept an input an URL and they decode the viewstate, my question is : How can I get viewstate starting from HttpWebRequest and HttpWebResponse???
Thanks a lot
Bests Regards
Paolo Ponzano
|
|
|
|
|
To access viewstate from the client simply store the value you are seeking in some html element via your server code. Then use javascript to access that element.
|
|
|
|
|
hi all,
when i press enter the entire form is clearing as i have button for clear function..
i want to give focus to next control on enter key, how do i manage to to do this?? how to control users key codes??
|
|
|
|
|
Check this [^]
or this[^]
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
Smiles74 wrote: i want to give focus to next control on enter key
You really shouldn't do it that way - the Tab key is there for that purpose...is the Tab key not suitable for some reason.
The only reason I mention this is that in my experience, if you need to do something "unusual", then it's really a workaround for another problem...
Oh, and it'll confuse the HELL out of your users too
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi All,
I m working on Datagrid using VB.NET as code behind. Can Some one tell me how to display Columns as row wise. I mean I have few columns in Datagrid. I want to display these column to be displayed as Row.
|
|
|
|
|
Can you be a bit clearer ?
Blog Have I http:\\www.frankkerrigan.com
|
|
|
|
|
Dear I take Data from Database and display in datagrid templete columns like following
Name Address Phone
Arif Hangu 98766
I want this should be displayed in Datagrid like following
Name Arif
Addres Hangu
Phone 98766
How is that posible in Datagrid. (ASP.NET)
|
|
|
|
|
Use repeater instead.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
I'd like to encrypt the connectionstring in the web.config file for a shared host website:
I read the following text:
http://aspnet.4guysfromrolla.com/articles/021506-1.aspx
How can i use this example for a website on a shared host?
I watched the following video:
http://www.asp.net/learn/videos/view.aspx?tabid=63&id=39
This example works fine on my local Pc (localhost). But if i copy the web.config to the shared host, the solution doesn't work.
How can I use this example for a shared host website?
Thanks for your support
ullk
|
|
|
|
|
Does anyone know how to take data from the gridview and put it back into a datatable or dataset?
|
|
|
|
|
You can use itemdatabound on the grid to copy the contents to a datatable while the table is loading.
I used a free (on codeproject somewhere) grid to excel converter which could be used.
Blog Have I http:\\www.frankkerrigan.com
|
|
|
|
|
I already have the data saved in viewstate. The problem is that having all that data in the viewstate is not good for the performance of the application. What I am trying to do is filter my grid without having to requery the database.
|
|
|
|
|
Save the data in session/viewstate as serialised object.
Blog Have I http:\\www.frankkerrigan.com
|
|
|
|
|
I want how to start designing a web page in asp.net.
Can any say about this
|
|
|
|
|
Start with a pencil and paper. I'm not kidding !!! Plan it out the design and then develop the design in asp.net
ASP.NET is not a website designer it is an application platform.
If you website requires no code or application funcationality then don't use asp.net use an Html IDE, even MS provides a free web design tool.
ANYWAY...... The secret to website design is tables with no boarders. This allows the content of your webpage to be presented in a consistent manner and layout.
Blog Have I http:\\www.frankkerrigan.com
|
|
|
|
|
Can any one give me the guidlines for converting my .net 2003 product to .net 2005
Mahammadhusen
|
|
|
|
|
www.microsoft.com
It should do it automatically or you can recreate the project manually and copy in all the old files.
Blog Have I http:\\www.frankkerrigan.com
|
|
|
|
|
Hello,
I have an ASP .NET 2.0. Web site that I am working on and I want to integrate a blog on the website. If anyone can recommend me a free solution I would really appreciate it.
Best regards,
Dan.
|
|
|
|
|
|
Thank you,
It seems to be exactly what I am looking for.
Dan.
|
|
|
|
|
HI problem regarding ajax ..
Inside ajax Method I use code to bind data ..
Code is as follow
[Ajax.Method]
public string GetCity(int stateId )
{
MenuDirectory.BLL .MasterData objMaster=new MenuDirectory.BLL.MasterData ();
DataSet dsCity=objMaster.GetCitiesForState(stateId);
DataRow dr=dsCity.Tables[0].NewRow();
dr["cityId"]=0;
dr["cityName"]="Select City";
dsCity.Tables[0].Rows.InsertAt(dr,0);
dropDownResCity.DataSource=dsCity.Tables[0];
dropDownResCity.DataTextField="cityName";
dropDownResCity.DataValueField="cityId";
dropDownResCity.DataBind();
HtmlTextWriter testWriter = null;
dropDownResCity.RenderControl(testWriter);
return testWriter.ToString();
}
I got error on line "dropDownResCity.RenderControl(testWriter);" As
Control 'dropDownRestCity' of type DropDownList must be place inside form tag with run at = "Server" where and my control is inside form tag
The html for AspX as follow
<HTML>
<HEAD>
<title>AjaxCall</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function CallFillCity(objCity)
{
//alert(obj.value);
var obj = document.getElementById("dllCity");
//alert(obj.innerHTML);
//alert(objCity.value);
CityHtml = My.Page.GetCity(objCity.value);
//alert(CityHtml.value);
obj.innerHTML = CityHtml.value;
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td id="dllState1">
<p style="MARGIN-TOP: 2px"> <asp:dropdownlist id="dropDownResState" CssClass="txtType" Runat="server" AutoPostBack="False"></asp:dropdownlist></p>
</td>
<td id="dllCity">
<p style="MARGIN-TOP: 2px"><asp:dropdownlist id="dropDownResCity" tabIndex="1" CssClass="txtType" Runat="server" AutoPostBack="False"></asp:dropdownlist></p>
</td>
</tr>
</table>
</form>
</body>
</HTML>
Any know solution ...
yogesh M
|
|
|
|
|
Just wondering why you have chosen to use the HTMLText writer to add the control?
|
|
|
|
|
HI want HTML return by the server ...
So i written
|
|
|
|